Skip to main content
Glama

sweden-parliament-mcp-server

Search parliamentary documents

riksdag_search_documents
Read-onlyIdempotent

Search Swedish parliamentary documents and consolidated SFS statutes by words, document type, session, committee, party, member IID or dates. Choose relevance or descending date ordering and follow complete continuation calls. Read document status and text with riksdag_get_document.

Input Schema

NameRequiredDescriptionDefault
pageNoRemote page number, starting at 1.
sortNoSource ordering; relevance for nonblank queries and descending date otherwise.
partyNoParty code or exact reference label.
queryNoSource full-text query; narrow slow searches with session or type.
dateToNoInclusive latest ISO calendar date, YYYY-MM-DD.
offsetNoIn-page row offset; follow nextCall without changing the remote page size.
sessionNoParliamentary session; omission searches all available sessions.
dateFromNoInclusive earliest ISO calendar date, YYYY-MM-DD.
memberIdNoNumeric member IID from riksdag_search_members; leading zeros are preserved.
pageSizeNoRequested remote page size; maximum applied size 50.
revisionNoRemote-page revision from continuation; rejects changed pages.
committeeNoCommittee code or exact reference label.
documentTypeNoDocument type code or exact reference label, including sfs.

Output Schema

NameRequiredDescriptionDefault
pageNoApplied remote page.
errorNoPresent when the call failed. Absent on success.
itemsNoComplete rows selected from the fetched remote page.
offsetNoApplied in-page row offset.
sourceNoRequired attribution to the Swedish Parliament.
hasMoreNoWhether local rows or another remote page remain.
noticesNoAll applicable notices, including an empty list.
nextCallNoComplete next-page call with unchanged filters and page size.
pageSizeNoApplied remote page size.
revisionNoHash of the complete normalized remote page.
truncatedNoWhether response fitting shortened this local page.
totalCountNoAuthoritative source hit count, when published.
retrievedAtNoSource fetch time, retained unchanged on cache hits.
returnedCountNoActual rows returned.
upstreamQueryNoUpstream query echo; not proof that a filter was applied.
effectiveQueryNoDeterministic normalized input, applied defaults and local filters.
upstreamWarningsNoWarnings supplied by the source.
remoteReturnedCountNoComplete fetched remote-page row count.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint and openWorldHint, so the safety profile is covered structurally. The description adds the pagination behavior ('follow complete continuation calls') and default ordering behavior, but says nothing about result-size limits or cost of broad queries beyond what the schema already states.

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 the verb and resource, then the filter menu and the ordering/continuation instructions, then the sibling handoff. No filler and every clause carries operational information.

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?

Given 13 optional parameters, an output schema, and full annotations, the description covers purpose, filtering, ordering, pagination, and the follow-up retrieval tool, which is sufficient for correct invocation. It does not state default behavior when no parameters are supplied or how filters combine, leaving a minor completeness gap.

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 13 parameters are already documented with semantics such as revision, offset, and session behavior. The description only groups the filter families (words, type, session, committee, party, member IID, dates) at a high level without adding syntax or combination rules, matching the baseline 3 for a fully documented schema.

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 (Search) and resource (Swedish parliamentary documents and consolidated SFS statutes) and enumerates the filter dimensions available, so an agent knows precisely what it retrieves. It also names the sibling riksdag_get_document for the status/text follow-up, cleanly separating search from retrieval.

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 clear routing: use this to search, then read document status and text with riksdag_get_document, and it explains the relevance-vs-date ordering choice and the continuation workflow. It stops short of explicit exclusions (e.g., when to prefer riksdag_search_speeches or riksdag_search_members for related content), so there is a small gap.

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.