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. 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 declare readOnlyHint/idempotentHint true and destructiveHint false, so safety is covered. The description adds material behavior the annotations do not: the response format (JSON-stat2 with labeled dimensions and numeric values), the backing host (px.hagstofa.is), no-auth requirement, and CC BY 4.0 licensing. It stops short of noting response-size or pagination behavior for large 'all' selections.

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?

Front-loads what the tool does, then the prerequisite, then the response format, then the example and provenance details. Every sentence carries actionable information — no filler, no restatement of the title.

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?

An output schema exists, so return values need not be spelled out, yet the description still names JSON-stat2. Prerequisite discovery tool, parameter semantics, example call, data source, auth, and license are all present. Nothing an agent needs to invoke this 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 description coverage is 100%, so the baseline is 3; the description earns a modest bump by illustrating how the nested filter/values semantics combine in a real query ('Ár filter=top values=[3]' for the 3 most recent years) and by warning that dimension codes are Icelandic words with non-ASCII characters. Much of this duplicates schema text, so it does not rise above 4.

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?

States a specific verb and resource ('run a statistical query against an Iceland statistics table') and scopes it precisely to dimension-filtered slicing. Clearly distinguished from its sibling table_metadata, which the description positions as the discovery step. An agent can identify this tool's role without opening 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 Guidelines5/5

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

Explicitly instructs 'Call iceland-statistics.table_metadata first to discover valid dimension codes and value codes', naming the prerequisite and the reason. It also supplies a worked example (Eining='0', Ár filter='top' values=['3']) that shows exactly how the described usage translates into a call.

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.