Skip to main content
Glama

Riksdag & Regering

Hämta regeringsdokument

get_regering_dokument
Read-onlyIdempotent

Hämta hela innehållet på en sida från regeringen.se som Markdown – t.ex. ett pressmeddelande, en proposition, en SOU eller en remiss, inklusive länkar till PDF-bilagor. Långa sidor levereras i delar: finns next_offset i svaret, skicka det som offset för att läsa vidare.

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

Input Schema

NameRequiredDescriptionDefault
urlYesAdressen från search_regering, t.ex. "https://www.regeringen.se/pressmeddelanden/2026/11/…/".
offsetNoTeckenposition att börja läsa från. Standard 0.
max_teckenNoMax antal tecken per anrop. Standard 8000.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already cover read-only, idempotent, non-destructive and open-world behavior, so the description need not restate safety. It instead discloses two things annotations cannot: output is Markdown including PDF-attachment links, and long pages are chunked with next_offset, which matters because there is no output schema.

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, front-loaded with what is returned, followed by the pagination rule. Every clause carries information an agent needs; nothing is repeated from the schema or annotations.

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?

With no output schema and a chunked-response design, the return format and the next_offset continuation contract are the two things an agent could not otherwise infer, and both are stated. Remaining details (max_tecken default, offset minimum) are fully covered by the schema.

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%, so the baseline is 3, but the description adds meaning the schema does not: the url is a value obtained from search_regering, and offset should be fed from the next_offset field of the previous response. That is real semantic glue beyond the field descriptions.

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 and resource: fetch the full content of one page from regeringen.se as Markdown, and enumerates the page types (pressmeddelande, proposition, SOU, remiss). This clearly separates it from search_* siblings, which only locate pages rather than return full text.

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 entry condition — the url must come from search_regering — and explains the continue-reading loop when next_offset is returned, which is a genuine when-to-call-again rule. No explicit exclusions or negative cases, so not a 5.

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.