Skip to main content
Glama

Riksdag & Regering

Följ ett lagstiftningsärende

get_lagstiftningskedja
Read-onlyIdempotent

Visa hela lagstiftningskedjan som ett regeringsdokument ingår i: kommittédirektiv → SOU/Ds → remiss → lagrådsremiss → proposition → riksdagsbeslut → SFS, samt EU-steg när ärendet bygger på EU-rätt. Använd för frågor som "vad hände med utredningen?", "vilken SOU ligger bakom propositionen?" eller "har förslaget blivit lag?". Ange url från search_regering (träffar med har_lagstiftningskedja). Varje dokument i svaret har url för get_regering_dokument; riksdagens betänkanden länkas till riksdagen.se.

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": {
      "url": "<url>"
    },
    "name": "get_lagstiftningskedja"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesAdressen till ett dokument på regeringen.se, t.ex. en proposition, SOU eller remiss från search_regering.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

With readOnly/idempotent/openWorld annotations already covering the safety profile, the description still adds real behavioral context: the response spans the whole chain including EU steps, every returned document carries a url usable with get_regering_dokument, and riksdags betänkanden are linked out to riksdagen.se. It does not discuss what happens for documents outside a chain or any partial-result behavior, which keeps it below 5.

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?

Structure is front-loaded: purpose and chain first, usage triggers second, input-source and output-link details last. Each sentence carries information, though the opening sentence is long and the parenthetical example list could be trimmed without losing meaning.

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 one-parameter, non-destructive read tool with no output schema, the description supplies everything an agent needs: what the call returns (full chain, EU steps), how to obtain the input, and how to continue from the output to sibling tools. No material gap remains.

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?

Schema coverage is 100% and the schema already describes the url field, so this is baseline-plus: the description adds where the value should come from (search_regering results with har_lagstiftningskedja) and what document types qualify (proposition, SOU, remiss). That is meaningful routing semantics beyond the schema text.

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 opens with a specific verb and resource ("Visa hela lagstiftningskedjan") and then enumerates the exact document chain it traverses (kommittédirektiv → SOU/Ds → remiss → lagrådsremiss → proposition → riksdagsbeslut → SFS, plus EU steps), which unambiguously separates it from siblings like get_regering_dokument that return a single document.

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 gives concrete trigger questions ("vad hände med utredningen?", "vilken SOU ligger bakom propositionen?", "har förslaget blivit lag?") and states the prerequisite that the url must come from search_regering hits flagged with har_lagstiftningskedja. It also hints at the downstream alternative (per-document lookup via get_regering_dokument) but never explicitly states when NOT to use this tool, e.g. for a single document's content.

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.