Skip to main content
Glama

Statistics Finland StatFin Macro PxWeb MCP

Query StatFin table data

query_statfin_table_data
Read-onlyIdempotent

Execute a live PxWeb JSON-stat2 query against a Statistics Finland StatFin table and return decoded macroeconomic observations.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "query_statfin_table_data"
  }
}

Input Schema

NameRequiredDescriptionDefault
topicNoStatFin topic code (default "khi").
table_idNoStatFin PxWeb table ID ending in .px (default "11xc.px").
selectionsNoOptional map of dimension code to selected value codes; omitted dimensions default to top periods or first item.
top_periodsNoNumber of latest time periods when time dimension is not explicitly selected (1-24, default 5).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint and destructiveHint=false, so the safety profile is covered. The description adds that the query is "live" (a real network round-trip against an external service) and that results come back decoded, but says nothing about error behavior, rate limits, or result-size handling.

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?

A single front-loaded sentence with no filler. Verb, resource, query dialect, data source, and return type all appear before any redundancy would occur.

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?

With no output schema, the description does at least characterize the return as decoded macroeconomic observations, and the schema carries defaults, bounds and selection semantics for all four parameters. Minor gap: nothing about failure modes or how large a response can be for a live external query.

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 topic, table_id, selections and top_periods are already documented with defaults and bounds in the schema. The description contributes only the framing that this is a PxWeb JSON-stat2 query, which contextualizes the dimension/value-code semantics but adds no per-parameter detail.

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?

States a specific verb and resource: executing a live PxWeb JSON-stat2 query against a Statistics Finland StatFin table, returning decoded observations. The data-fetching framing distinguishes it from metadata/list/search siblings, though it never names them explicitly.

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?

Usage is only implied: an agent can infer this is the call to make once it has a topic and table_id from the listing/search tools. There is no explicit when-to-use or when-not-to-use statement and no mention of the sibling tools that produce the inputs.

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.