Get US federal spending by state, county or country
economy_government_spend_getGet US federal spending summed by state, county or country for a date window, filtered by award type, industry (NAICS), product or service (PSC) and keyword. Optional inputs: level, scope, state, awardType, naics and 4 more. Costs credits; see meta.creditsCharged.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"context": "<context>",
"llm_model": "<llm_model>"
},
"name": "economy_government_spend_get"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | End of the window, `YYYY-MM-DD`. With only `to`: the year up to that day. | |
| psc | No | Federal product and service codes (PSC), comma-separated, up to 20. 1 to 4 characters; a shorter code covers its family, e.g. `D3` (IT services) or `R425`. | |
| from | No | Start of the window, `YYYY-MM-DD`, not before `2007-10-01`. Without `from` and `to`: the latest US federal fiscal year (1 October to 30 September) that ended at least 90 days ago. With only `from`: to today. | |
| level | No | What to sum by: `state` (default), `county` or `country` (spending abroad included). | |
| naics | No | NAICS industry codes, comma-separated, up to 20. Each has 2, 4 or 6 digits; a shorter code covers its whole family, e.g. `4811` (scheduled air transport) or `54`. | |
| scope | No | `place_of_performance` (default, where the work is done) or `recipient_location` (where the recipient is based). | |
| state | No | Only this state, as a two-letter USPS code, e.g. `CA`. With `level=county`, its counties. | |
| context | Yes | Describe the user's underlying goal in one sentence, not the tool you are calling. | |
| keyword | No | Text matched against award descriptions, e.g. `cybersecurity`. 3 to 120 characters. | |
| awardType | No | `contracts` (default), `grants`, `loans`, `direct_payments`, `other` or `all`. | |
| llm_model | Yes | The exact model identifier you (the assistant) are running as, taken from your system prompt or environment (for example "claude-opus-4-8" or "gpt-5.2"). Used for analytics only. If you do not know your model identifier with certainty, pass "unknown" and do not guess. | |
| conversation_id | No | Echo the conversation_id from the server's previous response. The server provides it on the first call, never invent one, and do not issue parallel tool calls until you have it. |