How to Search US Government Spending in Claude

Tested example · Checked . The article links the test method and recorded results; outcomes can vary. Editorial standards
To search US government spending in Claude, add ToolRouter as a connector, then ask Claude to run the free Government Spending tool. It queries USAspending.gov for federal contracts, grants and loans by keyword, agency, recipient, state and date.
The same job in other assistants: ChatGPT and OpenClaw. Setup details: Connect Claude.
What Claude can and cannot do on its own for federal spending
This table does not describe Claude's built-in features. It shows which parts of the job need a live data source.
| What you want | Needs ToolRouter? |
|---|---|
| Explain what a federal contract or grant is | No |
| Summarise award records you paste into the chat | No |
| Pull current award records for a keyword or recipient | Yes, the data is outside the chat |
| Rank agencies by budget authority and obligations | Yes |
| Compare spending by state, county or district | Yes |
| Chart spending by month, quarter or fiscal year | Yes |
Set up ToolRouter in Claude
Claude has two routes. Pick the one that matches where you use Claude.
Claude app (chat):
- Open Add ToolRouter to Claude. Claude opens the custom connector form with the name and URL filled in.
- Confirm the form and sign in.
- Enable ToolRouter from the conversation tools menu. Team and Enterprise accounts may need an owner to add it first.
To add it by hand, use Customize > Connectors > + Add > Add custom connector, name it ToolRouter and paste https://api.toolrouter.com/mcp/anthropic.
Claude Code (terminal):
claude mcp add --transport http toolrouter https://api.toolrouter.com/mcp
# then in Claude Code: /mcpFinish authentication in /mcp, open a new session and enable the server. Full steps: Connect Claude Code.
The four skills, by what you want to do
People arrive with API terms such as spending_over_time or recipient. The tool wraps those jobs as four skills. All four are free.
| You want to | Skill | Parameters |
|---|---|---|
| Find specific awards | search_awards | keywords, agency, recipient, award_type (contracts, grants, loans, all), start_date, end_date, state (2-letter code), limit (max 50, default 10), sort_by (amount or date) |
| See which agencies spend most | list_agencies | sort_by (name, budget, spending) |
| Compare places | spending_by_geography | award_type, start_date, end_date, geo_level (state, county, district) |
| See a trend | spending_over_time | award_type, start_date, end_date, group_by (month, quarter, fiscal_year) |
Dates use YYYY-MM-DD. Geography and time skills default to the current fiscal year.
Connect your assistant, then try the task described in this guide.
A real run
Prompt: "Use ToolRouter to find the five largest federal cybersecurity contracts and show recipient, amount and agency."
On 27 November 2026 this call ran through ToolRouter's connection. The same call returns the same kind of result from any connected assistant. List price: free.
Input: {"keywords":["cybersecurity"],"award_type":"contracts","limit":5}
| Award id | Recipient | Amount (USD) | Agency | Start | End |
|---|---|---|---|---|---|
| FA862118F6251 | LOCKHEED MARTIN CORPORATION | 666,315,748.84 | Department of Defense | 2018-02-08 | 2027-01-31 |
| HQ085722F8003 | AMENTUM TECHNOLOGY, INC. | 524,055,138.18 | Department of Defense | 2022-09-05 | 2025-09-01 |
| 47QFCA20F0049 | GENERAL DYNAMICS INFORMATION TECHNOLOGY, INC. | 396,604,521.78 | General Services Administration | 2020-09-25 | 2025-10-24 |
| W91RUS19F0174 | GENERAL DYNAMICS INFORMATION TECHNOLOGY, INC. | 232,322,763.00 | Department of Defense | 2019-07-01 | 2026-11-30 |
| 36C10B23F0346 | MAVERIS LLC | 219,083,824.48 | Department of Veterans Affairs | 2023-09-29 | 2027-09-28 |
What the run showed: the search matches keywords against award descriptions, so a hit means the word appears in the description, not that the contract is a cybersecurity programme. Amounts are award values, and several awards span many years, so they are not one year's spend. Only the first five by amount came back.
Run receipt: the inputs and outputs as captured.
Prompts to try next
- "Search grants to MIT, then summarise the five largest by agency in a short memo I can paste into my project notes."
- "Here is a 40-page procurement report. List every agency it names, then use ToolRouter to show each agency's budget authority and obligated amount."
- "Run spending_over_time on grants by fiscal_year from 2021-10-01 to 2026-09-30 and write two paragraphs on the trend, with the numbers beside each claim."
Limits and gotchas
| Limit | Detail |
|---|---|
| Result cap | limit maxes at 50 per call |
| Keyword length | Keywords must be at least 3 characters |
| State filter | Two-letter code, matched to place of performance |
| Dates | YYYY-MM-DD, otherwise the current fiscal year |
| Not a decision tool | Award value is not payment made; check the award record before quoting it |
ToolRouter is the wrong choice if you need legal-grade audit evidence, or a bulk export of millions of rows. Use the official USAspending.gov downloads for that.
If you are an AI agent
Read and follow https://toolrouter.com/agent-onboarding/SKILL.md, then call tool government-spending, skill search_awards, with input such as {"keywords":["cybersecurity"],"award_type":"contracts","limit":5}.
Frequently Asked Questions
Can Claude look up federal contracts without a connector?
Claude can only work from what you paste in or what it can reach in your session. Connecting ToolRouter gives it a direct query to the award records.
Does it cost anything?
No. All four Government Spending skills are free.
Which data does it use?
It reads USAspending.gov, the official federal spending data source.
Can I filter to one state?
Yes. Pass `state` as a two-letter code to `search_awards`, or use `spending_by_geography` with `geo_level` set to state, county or district.
What is the difference between obligated amount and outlays?
`list_agencies` returns budget authority, obligated amounts and outlays for each agency. Ask Claude to show all three and explain the gap using the returned fields.
