Skip to main content
Glama

Riksdag & Regering

Sök regeringens dokument

search_regering
Read-onlyIdempotent

Sök bland dokument och nyheter från regeringen och Regeringskansliet (regeringen.se): pressmeddelanden, propositioner, SOU, Ds, kommittédirektiv, lagrådsremisser, remisser, regeringsuppdrag, tal, debattartiklar m.m. Filtrera på typ, departement och datum. Utan sok listas de senaste dokumenten. Träffar i titeln rankas först, därefter nyast först. Svaret ger url som används i get_regering_dokument för hela texten, och har_lagstiftningskedja när get_lagstiftningskedja kan visa ärendets gång. Data uppdateras en gång per dygn.

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": "search_regering"
  }
}

Input Schema

NameRequiredDescriptionDefault
sokNoSökord som alla måste finnas i titel, beteckning eller sammanfattning, t.ex. "skola betyg" eller "prop. 2025/26:195". Sökningen är ordagrann, så pröva flera böjningsformer vid få träffar.
tomNoSenaste publiceringsdatum, ÅÅÅÅ-MM-DD.
fromNoTidigaste publiceringsdatum, ÅÅÅÅ-MM-DD.
antalNoMax antal träffar, standard 20.
typerNoDokumenttyper att söka i. Standard: pressmeddelanden, propositioner, skrivelser, lagrådsremisser, SOU, Ds, kommittédirektiv, remisser, regeringsuppdrag, tal, debattartiklar och artiklar.
offsetNoHoppa över så här många träffar (för nästa sida).
departementNoDepartement, hela eller del av namnet, t.ex. "Finansdepartementet" eller "utbildning".

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare a safe, read-only, idempotent, open-world read, so the description does not need to restate safety. It adds genuinely new behavioral context: result ranking (title hits first, then newest first), a daily refresh cadence, and two response fields (url, has_lagstiftningskedja) with their downstream purpose. That is meaningful disclosure beyond the annotations, though error and pagination behavior remain unaddressed.

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 purpose and source are front-loaded, followed by filtering, ranking, and return-value notes in a logical order. The document-type enumeration is long but serves to bound coverage; overall the paragraph is dense without obvious filler.

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?

For a seven-parameter, all-optional search with no output schema, the definition covers what is searched, defaults, ranking, and the two salient response fields. Remaining gaps—pagination via offset and behavior on empty results—are minor and largely handled by the schema.

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 all seven parameters (sok, from/tom, antal, typer, offset, departement) are already documented in the schema. The description only echoes the filter dimensions at a high level and does not add format, ordering, or interaction semantics beyond what the schema states.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description gives a specific verb (Sök) and resource (dokument och nyheter från regeringen och Regeringskansliet/regeringen.se) and enumerates the document families covered. It does not explicitly distinguish itself from nearby siblings such as search_dokument or search_regeringsarenden, so an agent must infer the boundary, but the stated source domain makes the scope concrete.

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 states the no-query behavior ("Utan sok listas de senaste dokumenten") and routes the agent onward: the returned url feeds get_regering_dokument for full text, and has_lagstiftningskedja signals when get_lagstiftningskedja is applicable. There is no explicit when-not-to-use guidance or comparison against the other search_* tools.

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.