Skip to main content
Glama

Riksdag & Regering

Lista anföranden i kammaren

search_anforanden
Read-onlyIdempotent

Lista anföranden (tal) i riksdagens kammare, nyast först, filtrerat på riksmöte, parti eller talare. Svaret ger rubriken för debatten men inte själva texten – hämta den med get_anforande. Riksdagens API stöder inte fritextsökning i anföranden: för att hitta debatter om ett ämne, sök protokoll med search_dokument (sok="…", doktyp=["prot"]) eller filtrera här på talare och läs rubrikerna.

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

Input Schema

NameRequiredDescriptionDefault
rmNoRiksmöte, t.ex. "2025/26". Ett riksmöte löper från september till september.
sidaNoSidnummer, börjar på 1.
antalNoAnföranden per sida, standard 20.
partiNoPartibeteckning: S, M, SD, C, V, KD, L eller MP.
intressent_idNoTalarens id från search_ledamoter.
exkludera_replikerNoVisa bara huvudanföranden, inte repliker. Standard false.

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 establish readOnly/idempotent/non-destructive and open-world behaviour, so the safety profile is covered. The description adds genuinely non-obvious behaviour: the response contains only the debate heading, not the speech body, and the underlying API refuses free-text queries. It stops short of describing pagination or result ordering within a page, which are the only remaining behavioural gaps.

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?

Three sentences, front-loaded with the primary action, then the output limitation, then the alternative-search workaround. No sentence is redundant with the title or schema, and the fallback instructions are placed after the primary definition where an agent needs them.

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?

Despite having no output schema, the description tells the agent exactly what the response yields (headings, not speech text) and how to continue from there. Combined with the workaround for topical search, an agent has everything required to call this tool correctly and to know when the result is insufficient.

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 every parameter (rm, sida, antal, parti, intressent_id, exkludera_repliker) is already documented in structured form. The description restates the filter dimensions at a high level ('riksmöte, parti eller talare') but adds no format, default, or interaction detail beyond the schema, so the baseline 3 applies.

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 ('Lista anföranden (tal) i riksdagens kammare'), the default ordering ('nyast först'), and the filterable dimensions, and clarifies the output is the debate heading rather than the speech text. That last clause cleanly separates it from get_anforande without needing the sibling's schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly gives the routing rule: this API has no free-text search, so topical searches should go to search_dokument with doktyp=["prot"], or the agent can filter here by talare and read headings. It also names get_anforande as the follow-up tool for fetching the actual text, so both forward and lateral routing are spelled out.

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.