Skip to main content
Glama

Kildeverk

Describe an SSB table

statistics_describe_table
Read-onlyIdempotent

Show what an SSB table contains before fetching data: its dimensions and their value codes, units, available codelists (such as counties or 5-year age groups) and footnotes. Use value_search to find a code, e.g. the code for a municipality. The answer includes example_arguments that statistics_get_data accepts as they are.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "table_id": "<table_id>"
    },
    "name": "statistics_describe_table"
  }
}

Input Schema

NameRequiredDescriptionDefault
langNoLanguage of titles and labels. Codes are the same in both.en
table_idYesSSB table id, e.g. '07459'. Find ids with statistics_search_tables.
value_searchNoOnly list dimension values whose code or label contains this text, e.g. 'Bergen'. Use it to find the code for a place or category.
values_limitNoMost values to list per dimension.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint=false, so the safety profile is covered. The description adds useful behavioral context by listing what the response contains — dimensions, value codes, units, codelists, footnotes — and by stating that example_arguments can be passed directly to statistics_get_data.

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?

The description is tightly structured and front-loaded: it states the inspection purpose first, then the returned content, then the value_search workflow, then the example_arguments handoff. Every sentence carries useful information with no filler.

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 read-only metadata tool with no output schema, the description explains what the response includes and how example_arguments enable the next call. Combined with the fully documented schema and safety annotations, an agent has enough information to call this tool correctly without further guidance.

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 the schema already documents all four parameters in detail. The description reinforces the use of value_search with a concrete example ('the code for a municipality'), but it does not add syntax or format details beyond what the schema provides. The baseline of 3 is appropriate.

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 uses a specific verb and resource: 'Show what an SSB table contains before fetching data.' It clearly distinguishes this metadata-inspection tool from the data-fetching sibling by saying it is used before fetching and that its answer contains example_arguments for statistics_get_data.

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?

The phrase 'before fetching data' clearly positions this as a pre-fetch inspection step, and the description explicitly recommends value_search for locating a code. It stops short of naming when not to use the tool or stating an explicit alternative for fetching actual data, leaving that to inference from 'before fetching data.'

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.