Skip to main content
Glama

Statistics Finland StatFin Macro PxWeb MCP

Get StatFin table metadata

get_statfin_table_metadata
Read-onlyIdempotent

Fetch PxWeb dimension metadata, variable codes, and sample category values for a specific StatFin statistical table.

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": "get_statfin_table_metadata"
  }
}

Input Schema

NameRequiredDescriptionDefault
topicNoStatFin topic code (default "khi").
table_idNoStatFin PxWeb table ID ending in .px (default "11xc.px").
sample_valuesNoSample values per dimension (1-30, default 10).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint, and destructiveHint=false, so safety is covered. The description still adds value by disclosing what the call actually returns (dimensions, variable codes, sampled category values), which is the only place return shape is documented since there is no output schema; it stops short of mentioning network/rate-limit behavior.

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 or redundant restatement of the title; every clause (metadata type, variable codes, sample values, table scope) contributes information an agent needs.

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?

For a three-parameter, all-optional, read-only discovery tool with rich annotations, the description plus schema covers what the agent needs to invoke it and what it will get back. The missing piece is workflow context, i.e. how this metadata feeds the sibling query tool.

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% and all three parameters (topic, table_id, sample_values) carry their own descriptions and defaults. The description only indirectly touches sample_values via "sample category values" and adds no extra meaning about valid topic codes or table ID conventions beyond the schema.

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 uses a specific verb ("Fetch") and names the exact resource returned: PxWeb dimension metadata, variable codes, and sample category values for a specific StatFin table. That clearly separates it from query_statfin_table_data (data, not metadata) even though the sibling is not named 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 discovery step before querying data, but the description never states when to call it, whether it is a prerequisite, or when to prefer search_statfin_macro_tables or list_statfin_topic_tables instead.

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.