Skip to main content

Build a qbash Task with Claude that researches every Iowa bank from FDIC data

Alex MacLeod

In this video Alex MacLeod asks Claude to research every bank in America, and Claude answers that the list is too long for one report. He then has Claude build a qbash Task called Bank research. A Task is an AI cloud function written in Python that qbash hosts on secure cloud infrastructure. This one pulls a state's banks from the FDIC and gives each bank its own researcher on a small model, limited to five searches. The Iowa run found 225 banks and cost about $10.

What's covered

  • Asking Claude, in research mode, to research every bank in America
  • The request that builds the Bank research Task
  • How the Task gets the FDIC list and runs one researcher per bank
  • Running it for Iowa from Claude
  • The run log, the cost of each researcher and the total for the state
  • A one-branch bank with almost no web presence

Claude's research mode asks you to narrow the list

With research mode on, Alex types this into Claude:

Research every bank in America: who runs it, what it focuses on, and any recent news.

Claude replies that there are roughly 4,000+ FDIC-insured banks in the US, plus thousands of credit unions, so profiling every one "isn't something a single report can do well". It asks which slice to cover, such as the top 25, 50 or 100 banks by assets, one state, or a category like community banks. That approach puts one researcher on an expensive model in charge of every bank in one conversation. The job needs a list of banks first, and then a small researcher for each one.

Ask Claude to build the Task

Claude is connected to qbash through the official qbash MCP, so what it builds is saved in qbash and outlasts the chat. The request typed in the video:

Build it as a qbash task called Bank research: take a state, get its banks from the FDIC, research each one with a small model and a step limit, run many at a time, and return the results. Send me the link.

Claude calls build_task on the qbash MCP. qbash writes the prompt, sets the inputs, saves the settings, writes the script and runs a test. Claude then sends back the link to the saved Task. Its reply says a test run on DC found 4 banks and researched all 4 with no errors.

How the Task gets the FDIC list and researches each bank

The Task takes one input, a state, as a two-letter code or a full name. Python code in main.py pages through the FDIC BankFind API for every active institution in that state and keeps each bank's name, FDIC cert number, city, total assets, website and bank class:

resp = qbash.http.request("GET", f"https://banks.data.fdic.gov/api/institutions?{params}", timeout=60000)

Each bank then goes to a prompt called Bank Researcher, which runs on Claude Haiku 5.5 with Web Search on and returns JSON. Its system message opens with the limit:

You research one US FDIC-insured bank using web search. Use at most 5 searches.

The prompt asks for the bank's leadership, what it focuses on and up to five recent news items with a date and source URL. It tells the model never to guess, to say so when a field is not found, and to set its confidence to high, medium or low. Each researcher is told to stop after five searches, so it doesn't go in circles and run up the bill. Claude's reply adds that the Task researches 15 banks at a time and records an error for any bank that fails while the rest keep going. It also points out that the five-search limit is a soft cap written into the prompt, because qbash enforces hard step limits only on prompts that use subagents or abilities.

The Task was live the moment it was built, and Alex can share it with teammates right away. The same Task runs from ChatGPT, from Slack or from any MCP client, including an agent you built.

Run it for Iowa

Alex types "Run it for Iowa." and Claude starts the Task with run_task, sends a link to the run and says it will take a while. When he asks "Is it done? Show me what it found.", Claude reports that the Task found 225 active FDIC-insured banks in Iowa and researched 223 of them, and that the run cost about $10 at standard rates. It lists the largest Iowa banks in a table with their assets, who runs each one, what it focuses on and notable recent news.

The run log shows what each researcher cost

The run page in qbash shows a passed run that took 3m 19s, with 229 steps and a run cost of $9.96198 for the whole state. Each researcher appears in the log as its own qbash.ai.run_prompt(bank-researcher-25...) step with its own cost, and the ones on screen cost between $0.03 and $0.06. Opening a step shows each web search it made, the inputs it got from the FDIC list and the result it returned.

A one-branch bank with almost no web presence

ITS Bank in Johnston is a single-office bank, and the FDIC list has no website for it. Its researcher ran three searches, including "ITS Bank Iowa CEO president", and returned "focus": "Not found", an empty leadership list, no recent news and low confidence. The notes say the directory sites it found list no website and no officers. They also name two Iowa banks with similar names that it excluded as different institutions.

Official MCP server has the setup steps for Claude, ChatGPT and other MCP clients. Prompts covers Web Search on a prompt and the limits that apply when a prompt runs as an agent. Alex also connected Federal Reserve data to Claude in the FRED walkthrough.

Start free at qbash.com →

Stay in the loop

Product updates, tutorials, and AI insights. No spam.