Skip to main content
Glama

Riksdag & Regering

Koder och referensdata

get_referensdata
Read-onlyIdempotent

Slå upp koder som de andra verktygen använder: dokumenttyper, utskott, partier, kalenderkoder, regeringens dokumenttyper och departement, samt dagens datum och aktuellt riksmöte. Anropa när du är osäker på en kod eller behöver veta vilket riksmöte som pågår.

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_referensdata"
  }
}

Input Schema

NameRequiredDescriptionDefault
omradeNoVilken del som ska visas. Standard: alla.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already cover safety (readOnly, idempotent, non-destructive, openWorld), so the bar is lower. The description adds real context beyond them by disclosing the returned content set and flagging that it includes dynamic values (today's date, current riksmöte). It does not describe the response shape or ordering, keeping it short of a 5.

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?

Two sentences, zero filler; the resource inventory is front-loaded and the invocation condition comes second. The long enumeration is compact and each item carries 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?

With no output schema, the description carries the burden of describing returns, and it does so by listing the code categories plus the date and session fields. What remains uncovered is format and how codes are keyed, a minor gap for a simple one-parameter lookup 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 coverage is 100% and the single parameter has an enum with its own description and default, so the schema does the heavy lifting. The description's split between riksdagen-related codes and regeringen-related codes loosely mirrors the enum values, adding marginal meaning but never naming the omrade parameter explicitly.

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 ("Slå upp") plus the resource ("koder ... referensdata") and enumerates the exact code families returned: document types, committees, parties, calendar codes, government document types, ministries, today's date and current riksmöte. The phrase "koder som de andra verktygen använder" positions it clearly apart from the sibling data-fetching tools.

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?

Gives an explicit trigger: call when unsure of a code or when you need to know the active riksmöte, which implies calling it as a lookup before other tools. It does not state when not to call it or name a specific alternative, but the context for use is unambiguous.

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.