Skip to main content
Glama

get_statistics

Get regional statistics by unit, variable and year

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": {
      "unit_id": "<unit_id>",
      "variable_id": "<variable_id>",
      "year": "<year>"
    },
    "name": "get_statistics"
  }
}

Input Schema

NameRequiredDescriptionDefault
yearYes
unit_idYes
variable_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

C2.7/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full burden, and it discloses almost nothing: it does not say whether the call is read-only, what happens when a unit/variable/year combination has no data, whether results are aggregated or per-period, or what the response looks like. One clause about missing-data behavior or return shape would materially help.

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?

A single front-loaded sentence with no filler, and the primary lookup keys are given first. It is efficient, though the brevity contributes to the semantic gaps flagged elsewhere.

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?

Three required string parameters with no descriptions, no annotations, and no output schema — the description should explain identifier formats and the shape of the returned statistics, and it explains neither. For a data-retrieval tool this leaves too much for the agent to guess.

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

Parameters2/5

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

Schema description coverage is 0%, so the description must compensate, and it only re-lists the parameter names without adding meaning: no year format (e.g., '2023' vs '2023-01-01'), no unit_id/variable_id format or valid values, and no statement of whether all three are required. It adds nothing beyond the bare schema titles.

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 ('Get') and resource ('regional statistics') and names the three axes of lookup (unit, variable, year). It is clear enough to distinguish from siblings like get_unit or list_units, which return entities rather than statistics, but 'regional statistics' is never characterized, so the agent cannot tell what data actually comes back.

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?

There is no guidance on when to use this tool versus get_unit, list_subjects or list_units, and no prerequisites (e.g., that a valid unit_id and variable_id must be resolved first). The agent must infer the workflow entirely.

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.

Resources