Macro Indicator Data
macrodataRetrieve historical observations for a macro-economic indicator by code, with optional date range and pagination for controlled data retrieval.
Instructions
Get historical observations for one macro-economic indicator. Use indicator_code from macrodata_indicators; start_date/end_date accept YYYY-MM-DD. Supports offset/limit pagination.
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": {
"indicator_code": "<indicator_code>"
},
"name": "macrodata"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| _jq | No | Optional jq filter (jaq syntax) applied to this tool's JSON response before it is returned; it never changes the upstream request. One output is returned as-is, several as a JSON array, none as []. Module imports and the `env`/`debug`/`stderr` builtins are unavailable. Example: .data | map({symbol}). Omit for the full response. | |
| limit | No | Maximum number of data points to return (default 100, max 100). | |
| offset | No | Pagination offset for historical data points, default 0. | |
| end_date | No | Latest release date to include (YYYY-MM-DD, e.g. `"2024-12-31"`). | |
| start_date | No | Earliest release date to include (YYYY-MM-DD, e.g. `"2024-01-01"`). | |
| indicator_code | Yes | Indicator code from `macrodata_indicators`, e.g. `"30771718"`. |