How to Search US Government Spending in OpenClaw

Tested example · Checked . The article links the test method and recorded results; outcomes can vary. Editorial standards
To search US government spending in OpenClaw, register ToolRouter with openclaw mcp set, sign in, then have your agent call the free Government Spending tool. It reads USAspending.gov for federal contracts, grants and loans, so an agent can repeat the same query on a schedule.
Other assistants: Claude and ChatGPT. Setup: Connect OpenClaw.
What OpenClaw can and cannot do on its own for federal spending
This table does not describe OpenClaw's built-in features. It shows which steps need a live data source.
| Step | Needs ToolRouter? |
|---|---|
| Hold a standing instruction such as "check awards weekly" | No, that is your agent setup |
| Read award records for a keyword, agency or recipient | Yes |
| Get agency budget authority, obligations and outlays | Yes |
| Get spending by state, county or district | Yes |
| Get a monthly, quarterly or fiscal-year series | Yes |
An MCP connection does not schedule anything. Per the connect doc, use OpenClaw's own automation or your own scheduler, with a scope and a budget. This tool is free, so the budget is zero.
Set up ToolRouter in OpenClaw
- Register the streamable HTTP server:
openclaw mcp set toolrouter '{"url":"https://api.toolrouter.com/mcp","transport":"streamable-http","auth":"oauth"}'
openclaw mcp login toolrouter- Complete sign-in in the browser.
- Enable the server for the agent that will run the job.
- Install the optional skill, which teaches the agent to discover tools and check schemas first:
openclaw skills install skills-sh:Humanleap/agent-skills/toolrouterThe skill lives in <workspace>/skills/toolrouter/SKILL.md or ~/.openclaw/skills/toolrouter/SKILL.md. It does not sign you in. See the skill doc.
The four skills for a recurring job
| Job for the agent | Skill | Inputs worth pinning |
|---|---|---|
| Watch new awards on a topic | search_awards | keywords, award_type, start_date, sort_by set to date, limit up to 50 |
| Snapshot agency budgets | list_agencies | sort_by (name, budget, spending) |
| Compare regions | spending_by_geography | geo_level (state, county, district), dates |
| Record a trend point | spending_over_time | group_by (month, quarter, fiscal_year), dates |
Pin explicit YYYY-MM-DD dates in a scheduled run. The geography and time skills otherwise default to the current fiscal year, so a job's meaning shifts when the year changes.
Connect your assistant, then try the task described in this guide.
A real run
Prompt: "Use ToolRouter to run search_awards for cybersecurity contracts, limit 5, and list recipient, amount and agency."
This ran on 27 November 2026 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 |
|---|---|---|---|
| FA862118F6251 | LOCKHEED MARTIN CORPORATION | 666,315,748.84 | Department of Defense |
| HQ085722F8003 | AMENTUM TECHNOLOGY, INC. | 524,055,138.18 | Department of Defense |
| 47QFCA20F0049 | GENERAL DYNAMICS INFORMATION TECHNOLOGY, INC. | 396,604,521.78 | General Services Administration |
| W91RUS19F0174 | GENERAL DYNAMICS INFORMATION TECHNOLOGY, INC. | 232,322,763.00 | Department of Defense |
| 36C10B23F0346 | MAVERIS LLC | 219,083,824.48 | Department of Veterans Affairs |
Start and end dates came back too: for example the first award runs 2018-02-08 to 2027-01-31. Limits the run showed: only five rows, sorted by amount, and keyword hits come from award descriptions, not a verified topic label.
Run receipt: the inputs and outputs as captured.
Prompts to try next
- "Every Monday, run search_awards for my keywords with sort_by date and limit 50. Compare award ids with last week's file and report only new ones."
- "On the first of each month, run spending_over_time for contracts with group_by month for the fiscal year so far, and append the totals to a log."
- "Each quarter, run list_agencies sorted by spending and flag any agency whose obligated amount moved by more than 10 percent since the last snapshot."
Before a repeat run retries after an error, have the agent check the previous result. These calls are read-only, so a retry creates no duplicate records.
Limits and gotchas
| Limit | Detail |
|---|---|
| Rows per call | 50 at most, and has_next tells you more exist |
| Keywords | At least 3 characters |
| State | Two-letter code |
| Scheduling | Not part of ToolRouter |
| Diffing | The agent must store prior award ids itself |
ToolRouter is the wrong choice for bulk historical exports or for alerts that must arrive within minutes of an award. The data is only as fresh as the source.
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,"sort_by":"date"}.
Source for award data: USAspending.gov. OpenClaw setup reference: OpenClaw MCP documentation.
Frequently Asked Questions
Can OpenClaw alert me when a new federal award appears?
Only if you schedule the job. ToolRouter returns records when called, so your agent compares each run with the last one.
Does a scheduled run cost credits?
No. All four Government Spending skills are free.
How do I stop the job drifting when the fiscal year changes?
Pass explicit `start_date` and `end_date` values instead of relying on the current fiscal year default.
How do I know there are more results than I fetched?
`search_awards` returns `total_results` and `has_next`. Raise `limit` up to 50 or narrow the filters.
Do I need the skill installed?
No, the MCP connection alone works. The skill adds a discover-then-check-schema routine that helps unattended agents.
