get_data
Read the numbers: rows of one dataset with filters and aggregates, or indicator values for countries and companies joined across sources (World Bank, FRED, Eurostat, OECD, IMF, SEC).
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": {
"action": "<action>"
},
"name": "get_data"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| full | No | Return the full raw time series (heavy, many tokens). Default false → you get only the summary/stats, which is enough to ANSWER a question. Set true only when you must plot or export every point. | |
| sort | No | Sort column and direction (e.g. "year:desc", "value:asc"). Aggregate aliases work too (e.g. "sum_value:desc") | |
| time | No | entity_data: Optional time range, e.g. "2010-2023" or "2020". Format: YYYY or YYYY-YYYY compare: Optional time range: "2010-2023" or "2020" | |
| limit | No | query: Maximum number of rows to return (default 100, max 10000) profile: Max indicators to return (default 100, max 500) | |
| topic | No | Optional: filter indicators by topic | |
| action | Yes | Which operation to run. query = rows of one dataset, filtered, sorted, grouped or summarized, needs dataset_id; entity_data = several indicators for one country or company over time, needs entity_id, indicators; compare = one indicator across several countries or companies, needs entities, indicator; profile = every indicator autario holds for one country or company, needs entity_id. | |
| fields | No | Comma-separated list of columns to return (e.g. "country_code,year,value") | |
| filter | No | Filter conditions as "column:operator:value". Operators: eq, neq, gt, lt, gte, lte, like. Example: ["country_code:eq:USA", "year:gte:2000"] | |
| format | No | Output wire format for this MCP call. Default 'toon' (Token-Oriented Notation, fewest tokens, best for tabular rows). 'compact' = minified JSON. 'json' = pretty JSON for readability. The REST API always returns JSON regardless. | |
| offset | No | query: Number of rows to skip for pagination (default 0) profile: Pagination offset (default 0). When has_more is true, pass offset = previous offset + returned for the next page. | |
| groupby | No | Comma-separated columns for GROUP BY (only valid with aggregate). Example: "country,year". Use with aggregate to compute per-group statistics. | |
| overlay | No | Which data: "source" (default) = exactly what the provider delivered; "with_overlay" = accepted derived columns, corrections and mappings merged in, each row with `_row_key` (use it in propose_*) and `_overlay` (original value, reason, who, when); "proposed" (owner only) = also the open proposals, each with its state. Not combinable with aggregate or summary_only. | |
| entities | No | Entity codes to compare (max 50). E.g. ["DEU","USA","CHN"] | |
| aggregate | No | Comma-separated aggregations as "func(column)". Functions: avg, sum, count, min, max, stddev, median. Example: "avg(value),count(*),max(price)". Result columns are aliased as func_col (e.g. avg_value). Numerically correct on text-stored values. | |
| entity_id | No | entity_data: Entity code (e.g. "DEU", "USA", "EUU") profile: Entity code (e.g. "DEU" for Germany, "USA" for United States, "EUU" for European Union, "WLD" for World) | |
| indicator | No | Indicator ID to compare. Get from find_data action "indicators". | |
| dataset_id | No | The UUID of the dataset to query | |
| indicators | No | Indicator IDs (max 10). Get these from find_data action "indicators" or get_data action "profile". | |
| summary_only | No | Return only a finished per-column stats block (n, min, max, avg) plus first/last endpoint values, and NO raw rows. Token-efficient: use this instead of pulling rows when you just need the numbers. Default false. | |
| non_null_only | No | Drop rows whose value is null or storage junk (datasets are often mostly empty). Use to avoid wasting tokens on null rows. Default false. |