Skip to main content
Glama

Iceland Statistics Table Query

iceland-statistics.series.table_query
Read-onlyIdempotent

Run a statistical query against an Iceland statistics table — specify dimension filters to slice data by year, unit, and other indicators. Returns JSON-stat2 format with labeled dimensions and numeric values. Always call iceland-statistics.table_metadata first to discover valid dimension codes and value codes (often Icelandic words, e.g. 'Ár' for year). Example: population 1 January (Eining='0'), 3 most recent years (Ár filter='top' values=['3']). Data: px.hagstofa.is, no auth required, CC BY 4.0 (Statistics Iceland).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYesArray of dimension filters. Each filter selects which values to include for one dimension. Example: [{code:'Ár',selection:{filter:'top',values:['3']}}, {code:'Eining',selection:{filter:'item',values:['0']}}]. Response is JSON-stat2 format with dimension labels and numeric values array.
table_pathYesFull path to the leaf table to query — same as iceland-statistics.table_metadata table_path. Example: 'Ibuar/mannfjoldi/1_yfirlit/yfirlit_mannfjolda/MAN00000.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.7/5.0
Behavior4/5

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

Annotations already establish readOnly/openWorld/idempotent hints and non-destructive behavior. The description adds valuable context beyond annotations: the JSON-stat2 response format, the data source (px.hagstofa.is), no auth requirement, and the CC BY 4.0 license. It does not mention response size limits or error behavior, but the key operational traits are covered.

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?

Every sentence carries functional weight: the operation, the filter behavior, the required prerequisite, a concrete example, and practical data-source/licensing context. The description is dense but well-organized and front-loads the most important facts before the example.

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?

Given the high-quality schema, output schema, and rich annotations, the description fills all remaining gaps: it names the prerequisite discoverability step, gives a realistic example, states the return format, and notes access and licensing. An agent has everything needed to invoke this tool correctly.

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 100% and the schema already documents both parameters well. The description adds meaningful semantic reinforcement—explaining that dimension codes are Icelandic words, that 'top' selects N most recent values, and providing a complete example with actual codes and filter types. This helps an agent bridge from abstract schema to real usage.

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 states a specific verb ('Run a statistical query'), a clear resource ('an Iceland statistics table'), and the core capability (dimension filters to slice data). It also distinguishes itself from the metadata tool by explicitly instructing the agent to call iceland-statistics.table_metadata first, making sibling differentiation clear.

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

Usage Guidelines5/5

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

The description gives an explicit prerequisite ('Always call iceland-statistics.table_metadata first') and explains why (codes are often Icelandic words with non-ASCII characters). It provides a concrete example of the expected query structure, making the usage context unmistakable for an agent.

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.