Skip to main content
Glama

Hent tall fra en tabell

data

Retrieve live statistics from Statistics Norway by specifying table ID, dimension selections, and optional latest periods. Query exact data subsets after checking valid codes.

Instructions

Henter tall med et eksplisitt utvalg per dimensjon. Kjør table først for å se gyldige koder.

selections er et objekt med dimensjonskode som nøkkel og en liste koder som verdi. ["*"] betyr alle verdier i den dimensjonen. Dimensjoner du utelater blir summert dersom de kan utelates — ellers avviser SSB spørringen. latestPeriods er en snarvei for de siste N periodene.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
maxRowsNo
tableIdYes
selectionsNoF.eks. {"ContentsCode":["KpiIndMnd"],"Konsumgrp":["TOTAL"]}
latestPeriodsNoSiste N perioder i stedet for å velge Tid selv.
Install Server

TDQS

A4/5.0
Behavior3/5

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

With no annotations, the description must carry behavioral disclosure. It reveals that omitted dimensions are summed when possible and otherwise cause SSB to reject the query, and that `latestPeriods` is a shortcut. However, it does not describe the output format, error handling, or potential side effects, leaving gaps.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is three sentences: purpose, prerequisite with selection semantics, and a parameter shortcut. Each sentence earns its place and is front-loaded with the main purpose, though it is slightly dense.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The tool has a nested object and 4 parameters; the description explains the complex `selections` and `latestPeriods` well, but omits any mention of the return format or error behavior. With no output schema, this is a notable gap for a data-fetch tool.

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?

The schema covers 50% of parameters; the description compensates by explaining the `selections` object structure, the wildcard `["*"]`, and the omission behavior, plus the meaning of `latestPeriods`. `maxRows` and `tableId` are self-explanatory from schema constraints, so the added value is solid.

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 clearly states the tool fetches numbers from a table with explicit per-dimension selections, which is a specific verb and resource. It also references running `table` first to get valid codes, implying a clear distinction from the metadata sibling.

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?

It explicitly instructs to run `table` first to see valid codes, and explains how to use `selections` and `latestPeriods` with concrete semantics. It does not mention alternatives for data fetching beyond `latestPeriods`, but the prerequisite and parameter usage guidance is strong.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/synjan/mcp-ssb'

If you have feedback or need assistance with the MCP directory API, please join our Discord server