Run a spending query
run_planRun a QueryPlan (see get_catalog.plan_schema). Returns status (ok | clarify |
unsupported | error), a one-paragraph answer, columns, rows (max 100), the SQL that ran,
caveats, how names were resolved to codes, and page: the same answer on spendquery.com,
run live, to cite or open.
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": {
"plan": "<plan>"
},
"name": "run_plan"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| plan | Yes | A QueryPlan object in business terms, following get_catalog's plan_schema, e.g. {"intent": "aggregate", "metric": "obligations", "group_by": ["agency"], "fiscal_years": [2025], "award_category": "contract"} (award_category is a field of its own, not a filter). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||