Tools Reference
Treasury Fiscal Data
2 tools for accessing Treasury Fiscal Data data. No additional API key required.
treasury-query-data
Query any Treasury fiscal dataset including debt, revenue, spending, and interest rates.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| endpoint | string | required | API endpoint path from treasury-search-endpoints |
| fields | string | optional | Comma-separated field names to return |
| filter | string | optional | Filter expression e.g. 'country_currency_desc:eq:Canada' |
| sort | string | optional | Sort field with optional '-' prefix for descending |
| pageSize | number | optional | Number of results (max 100) |
Example
treasury-query-data(endpoint: "/v2/accounting/od/debt_to_penny", pageSize: 10)treasury-search-endpoints
Find available Treasury fiscal datasets by keyword. Searches locally — no API call needed.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| keyword | string | required | Keyword to search dataset titles and descriptions |
Example
treasury-search-endpoints(keyword: "debt")