Skip to main content
Glama

get_data

Retrieve time-series values for a selected variable across territorial units, with optional year range and unit filters. Returns raw annual data with year, unit, and label.

Instructions

Get actual data (time series) for a variable in one or more territorial units. Example: GDP per capita for all voivodeships over 2015-2024. Returns the raw values with year, unit, and unit label.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
year_toNoOptional last year to include
unit_idsNoList of unit IDs (from search_units). Default: all voivodeships.
year_fromNoOptional first year to include
limit_unitsNoMax units to include when unit_ids is empty
variable_idYesVariable ID from search_variables

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior3/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It does reveal the return shape ('raw values with year, unit, and unit label') and clarifies that this is actual time-series data, which is useful. However, it does not mention defaults, limitations, or any side effects beyond the obvious read-only nature of 'Get'.

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

Conciseness5/5

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

The description is compact and front-loaded with the core action and resource. The example adds concrete value without unnecessary verbosity, and every sentence earns its place.

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

Completeness4/5

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

For a tool with no output schema, the description adequately covers the purpose, example usage, and return contents. It lacks explicit workflow guidance and default-behavior detail, but the schema fills most gaps, making this reasonably complete for an agent to call correctly.

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%, so the schema already explains all five parameters. The description adds context about time-series and raw values, but it does not add parameter-specific meaning beyond what the schema provides; the baseline of 3 applies.

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

Purpose5/5

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

The description names a specific verb ('Get') and resource ('actual data (time series) for a variable in one or more territorial units'), and the GDP example concretely illustrates the intended use. This clearly distinguishes it from the sibling search tools, which retrieve metadata rather than data.

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

Usage Guidelines3/5

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

The description implies a workflow by referencing 'search_units' and 'search_variables' in the schema and by contrasting 'actual data' with search-oriented siblings, but it never explicitly states when to use this tool instead of get_unit_details or search tools. The intended pipeline is inferable rather than stated.

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

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/bartosz-kuc/stat-gov-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server