Skip to main content
Glama

Estonia Statistics Table Query

estonia-statistics.series.table_query
Read-onlyIdempotent

Run a statistical query against an Estonia statistics table — specify dimension filters to slice data by year and indicator. Returns JSON-stat2 format with labeled dimensions and numeric values. Always call estonia-statistics.table_metadata first to discover valid dimension codes and value codes (often Estonian words, e.g. 'Aasta' for year). Example: births/deaths/natural increase (Näitaja='1','2','3'), most recent year (Aasta filter='top' values=['1']). Data: andmed.stat.ee, no auth required, CC BY-SA 4.0 (Statistics Estonia).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYesArray of dimension filters. Each filter selects which values to include for one dimension. Example: [{code:'Aasta',selection:{filter:'top',values:['3']}}, {code:'Näitaja',selection:{filter:'item',values:['1','2','3']}}]. Response is JSON-stat2 format with dimension labels and numeric values array.
table_pathYesFull path to the leaf table to query — same as estonia-statistics.table_metadata table_path. Example: 'rahvastik/rahvastikunaitajad-ja-koosseis/demograafilised-pehinaitajad/RV030.PX'.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
errorNoPresent only when the call failed. Includes error code, message, request_id, and any provider-specific extras.
resultNoTool response payload. Shape varies per tool — consult the tool description and inputSchema. May be an object, array, string, or number depending on the upstream provider response.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare read-only/idempotent behavior; the description adds beyond that by disclosing the response format, the data source (andmed.stat.ee), no-auth requirement, and license. It does not go into response pagination or error behavior, but combined with annotations this gives ample transparency.

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?

Three tight sentences cover purpose, output format, prerequisite, and licensing, with a compact example. Every sentence earns its place and the most important information is front-loaded.

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

Completeness5/5

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

For a two-parameter read-only query tool with a full input schema and output schema, the description covers the necessary workflow (metadata-first), key parameter semantics, output format, and access/licensing. Nothing an agent needs to invoke it correctly is missing.

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

Parameters4/5

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

Schema coverage is complete and its individual field descriptions already explain code/selection/filter/values. The tool description supplements this with a concrete births/deaths/natural-increase example and the 'top' filter pattern for most recent years, which clarifies how to combine dimensions in practice.

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 opens with a specific verb and resource ('Run a statistical query against an Estonia statistics table') and states what the operation produces (JSON-stat2 with labeled dimensions and numeric values). It differentiates itself from sibling metadata tools by explicitly instructing that table_metadata must be called first.

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

Usage Guidelines4/5

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

It gives clear context by naming table_metadata as a required preliminary call and explains that valid codes must be discovered before querying. It doesn't explicitly state when not to use the tool relative to similar country table_query siblings, but the prerequisite and example make selection straightforward.

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.