Skip to main content
Glama

get_data

Read-onlyIdempotent

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

NameRequiredDescriptionDefault
fullNoReturn 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.
sortNoSort column and direction (e.g. "year:desc", "value:asc"). Aggregate aliases work too (e.g. "sum_value:desc")
timeNoentity_data: Optional time range, e.g. "2010-2023" or "2020". Format: YYYY or YYYY-YYYY compare: Optional time range: "2010-2023" or "2020"
limitNoquery: Maximum number of rows to return (default 100, max 10000) profile: Max indicators to return (default 100, max 500)
topicNoOptional: filter indicators by topic
actionYesWhich 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.
fieldsNoComma-separated list of columns to return (e.g. "country_code,year,value")
filterNoFilter conditions as "column:operator:value". Operators: eq, neq, gt, lt, gte, lte, like. Example: ["country_code:eq:USA", "year:gte:2000"]
formatNoOutput 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.
offsetNoquery: 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.
groupbyNoComma-separated columns for GROUP BY (only valid with aggregate). Example: "country,year". Use with aggregate to compute per-group statistics.
overlayNoWhich 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.
entitiesNoEntity codes to compare (max 50). E.g. ["DEU","USA","CHN"]
aggregateNoComma-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_idNoentity_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)
indicatorNoIndicator ID to compare. Get from find_data action "indicators".
dataset_idNoThe UUID of the dataset to query
indicatorsNoIndicator IDs (max 10). Get these from find_data action "indicators" or get_data action "profile".
summary_onlyNoReturn 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_onlyNoDrop rows whose value is null or storage junk (datasets are often mostly empty). Use to avoid wasting tokens on null rows. Default false.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

B3.1/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

The annotations already state readOnlyHint=true, idempotentHint=true and destructiveHint=false, so the safety profile is covered. The description adds one real behavioral fact — that values may be joined across heterogeneous providers (World Bank, FRED, Eurostat, OECD, IMF, SEC), which implies coverage/vintage heterogeneity — but says nothing about cost, pagination or large-result behavior, which the schema handles instead via `full`, `summary_only` and `limit`.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

One compact sentence, front-loaded with the core verb and immediately qualifying the two data shapes. It earns its length, though the opening phrase 'Read the numbers' is somewhat informal and displaces space that could have gone to action routing.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

This is a 20-parameter, four-mode tool with no output schema, and the description never enumerates the modes or explains the relationship between them and the required parameters. The rich schema compensates substantially, but the description alone leaves an agent unable to tell what a call will actually return or which mode fits a given question.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100% and each of the 20 parameters already carries detailed prose (action semantics, filter operators, aggregate aliases, overlay modes, pagination). The description contributes no parameter meaning at all, so the baseline 3 for fully documented schemas applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb and scope: 'Read the numbers' covering both 'rows of one dataset with filters and aggregates' and 'indicator values for countries and companies joined across sources'. The read-only framing implicitly contrasts with write_data, but no sibling is named, and the four underlying actions (query, entity_data, compare, profile) are only revealed by the schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It describes what the tool returns but gives no when-to-use/when-not guidance: nothing about choosing between the four actions, nothing about when to reach for find_data to discover indicators, and nothing about when a page-level analysis tool (analyze) would be better. The agent must infer action selection entirely from the schema.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.