Skip to main content
Glama

sweden-parliament-mcp-server

Riksdag List Reference

riksdag_list_reference
Read-onlyIdempotent

Look up official document types, committees, parties, constituencies, speech reply filters, sessions, identifier conventions and source coverage from a dated offline snapshot; follow nextCall to read every entry. Document subtypes stay distinct from parent type codes, and the session catalog can lag current sessions.

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": {
      "topic": "<topic>"
    },
    "name": "riksdag_list_reference"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoRequested entries; values above 100 are clamped with a notice.
topicYesVocabulary or guidance topic to browse.
offsetNoZero-based local entry offset.

Output Schema

NameRequiredDescriptionDefault
errorNoPresent when the call failed. Absent on success.
limitNoApplied page length after clamping.
topicNoSelected reference topic.
offsetNoApplied zero-based local offset.
sourceNoRequired attribution to the Swedish Parliament.
entriesNoWhole entries on this page, with Swedish labels and distinct subtypes.
hasMoreNoWhether further bundled entries remain.
noticesNoApplicable notices, possibly empty.
nextCallNoContinuation for the remaining entries.
totalCountNoExact bundled entry count for this topic.
retrievedAtNoSource fetch time; unchanged on cache hits.
returnedCountNoEntries on this page.
upstreamQueryNoUpstream query echo, not proof a filter applied.
effectiveQueryNoNormalized input, defaults and local filters.
requestedLimitNoRequested page length before clamping.
upstreamWarningsNoSource warnings.
referenceSourceUrlNoOfficial source URL for this topic.
referenceVerifiedAtNoSnapshot verification date.
referenceCatalogTimestampNoOriginal catalog timestamp, no inferred timezone.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed32 schema fields changed
    • changedOutput schema / anyOf
      Previous value: -[
      -  {
      -    "not": {
      -      "required": [
      -        "error"
      -      ]
      -    },
      -    "required": [
      -      "topic",
      -      "entries",
      -      "referenceSourceUrl",
      -      "referenceVerifiedAt",
      -      "offset",
      -      "limit",
      -      "requestedLimit",
      -      "returnedCount",
      -      "totalCount",
      -      "hasMore",
      -      "truncated",
      -      "effectiveQuery",
      -      "source",
      -      "retrievedAt",
      -      "notices"
      -    ]
      -  },
      -  {
      -    "required": [
      -      "error"
      -    ]
      -  }
      -]New value: +[
      +  {
      +    "not": {
      +      "required": [
      +        "error"
      +      ]
      +    },
      +    "required": [
      +      "topic",
      +      "entries",
      +      "referenceSourceUrl",
      +      "referenceVerifiedAt",
      +      "offset",
      +      "limit",
      +      "requestedLimit",
      +      "returnedCount",
      +      "totalCount",
      +      "hasMore",
      +      "effectiveQuery",
      +      "source",
      +      "retrievedAt",
      +      "notices"
      +    ]
      +  },
      +  {
      +    "required": [
      +      "error"
      +    ]
      +  }
      +]
    • changedOutput schema / properties / effectiveQuery / description
      Previous value: -"Deterministic normalized input, applied defaults and local filters."New value: +"Normalized input, defaults and local filters."
    • changedOutput schema / properties / entries / description
      Previous value: -"Complete entries on this page, retaining Swedish source labels and distinct subtypes."New value: +"Whole entries on this page, with Swedish labels and distinct subtypes."
    • changedOutput schema / properties / entries / items / description
      Previous value: -"One official vocabulary entry or documented source convention."New value: +"One vocabulary entry or source convention."
    • changedOutput schema / properties / entries / items / properties / code / description
      Previous value: -"Official filter code, or the documented convention identifier."New value: +"Official filter code or convention identifier."
    • changedOutput schema / properties / entries / items / properties / end / description
      Previous value: -"Published session end with original date/time precision."New value: +"Published session end, original precision."
    • changedOutput schema / properties / entries / items / properties / explanation / description
      Previous value: -"Published description or explicit server guidance for this convention."New value: +"Published description or server guidance."
    • changedOutput schema / properties / entries / items / properties / labelEn / description
      Previous value: -"Available English label published by the source, without invented translation."New value: +"English label as published by the source, never translated here."
    • changedOutput schema / properties / entries / items / properties / labelSv / description
      Previous value: -"Swedish source label; explanatory guidance has Swedish topic labels."New value: +"Swedish source label; guidance rows carry Swedish topic labels."
    • changedOutput schema / properties / entries / items / properties / sessionId / description
      Previous value: -"Source session identifier, distinct from the public session string."New value: +"Source session identifier, not the public session string."
    • changedOutput schema / properties / entries / items / properties / start / description
      Previous value: -"Published session start with original date/time precision."New value: +"Published session start, original precision."
    • changedOutput schema / properties / entries / items / properties / subtype / description
      Previous value: -"Document subtype, distinct from the parent document-type code; empty means parent row."New value: +"Document subtype, distinct from the parent type code; empty means parent row."
    • changedOutput schema / properties / limit / description
      Previous value: -"Applied maximum page length after clamping and whole-entry fitting."New value: +"Applied page length after clamping."
    • changedOutput schema / properties / nextCall / description
      Previous value: -"Continuation covering every remaining entry."New value: +"Continuation for the remaining entries."
    • changedOutput schema / properties / nextCall / properties / args / additionalProperties
      Previous value: -falseNew value: +{}
    • changedOutput schema / properties / nextCall / properties / args / description
      Previous value: -"Complete arguments for the next reference page."New value: +"Complete normalized arguments for riksdag_list_reference, valid against its input schema; pass back unchanged."
    • removedOutput schema / properties / nextCall / properties / args / properties / limit
      Removed value: -{
      -  "description": "Applied maximum page length.",
      -  "maximum": 9007199254740991,
      -  "minimum": -9007199254740991,
      -  "type": "integer"
      -}
    • removedOutput schema / properties / nextCall / properties / args / properties / offset
      Removed value: -{
      -  "description": "Next unread entry offset.",
      -  "maximum": 9007199254740991,
      -  "minimum": -9007199254740991,
      -  "type": "integer"
      -}
    • removedOutput schema / properties / nextCall / properties / args / properties / topic
      Removed value: -{
      -  "description": "Same reference topic.",
      -  "enum": [
      -    "document_types",
      -    "committees",
      -    "parties",
      -    "constituencies",
      -    "speech_types",
      -    "sessions",
      -    "identifiers",
      -    "coverage"
      -  ],
      -  "type": "string"
      -}
    • removedOutput schema / properties / nextCall / properties / args / required
      Removed value: -[
      -  "topic",
      -  "offset",
      -  "limit"
      -]
    • changedOutput schema / properties / nextCall / properties / toolName / description
      Previous value: -"Tool to retrieve the next page."New value: +"Tool to call next."
    • changedOutput schema / properties / notices / description
      Previous value: -"All applicable notices, including an empty list."New value: +"Applicable notices, possibly empty."
    • changedOutput schema / properties / notices / items / description
      Previous value: -"A source limitation, applied bound or next-step notice."New value: +"A limitation, applied bound or next-step notice."
    • changedOutput schema / properties / referenceCatalogTimestamp / description
      Previous value: -"Original catalog generation timestamp without an inferred timezone."New value: +"Original catalog timestamp, no inferred timezone."
    • changedOutput schema / properties / requestedLimit / description
      Previous value: -"Caller-requested page length before clamping."New value: +"Requested page length before clamping."
    • changedOutput schema / properties / retrievedAt / description
      Previous value: -"Source fetch time, retained unchanged on cache hits."New value: +"Source fetch time; unchanged on cache hits."
    • changedOutput schema / properties / returnedCount / description
      Previous value: -"Actual entries on this page."New value: +"Entries on this page."
    • changedOutput schema / properties / totalCount / description
      Previous value: -"Exact number of bundled entries for this topic."New value: +"Exact bundled entry count for this topic."
    • removedOutput schema / properties / truncated
      Removed value: -{
      -  "description": "Whether response fitting shortened this page.",
      -  "type": "boolean"
      -}
    • changedOutput schema / properties / upstreamQuery / description
      Previous value: -"Upstream query echo; not proof that a filter was applied."New value: +"Upstream query echo, not proof a filter applied."
    • changedOutput schema / properties / upstreamWarnings / description
      Previous value: -"Warnings supplied by the source."New value: +"Source warnings."
    • changedOutput schema / properties / upstreamWarnings / items / description
      Previous value: -"An upstream warning preserved verbatim."New value: +"An upstream warning, verbatim."
  2. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Beyond the readOnly/idempotent/openWorld annotations, the description discloses that backing data is a dated offline snapshot, that subtype entries stay distinct from parent type codes, and that the session catalog can lag current sessions. These are real behavioral caveats an agent needs; the clamping-at-100 behavior is left to the schema.

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?

Front-loaded with the verb and a tight topical enumeration, then two short caveat clauses. Slightly list-heavy, but each clause — snapshot dating, subtype distinction, session lag — carries information rather than padding.

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 small three-parameter reference tool with an output schema and rich annotations, the description covers scope, data freshness, and continuation via nextCall. Return-value structure is correctly left to the output 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%, with the topic enum fully documented and limit/offset described including the clamping notice. The description restates the topic list but adds no offset/limit semantics of its own, so it sits at the baseline.

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 ('Look up') and enumerates the exact resource set (document types, committees, parties, constituencies, speech reply filters, sessions, identifier conventions, coverage). 'From a dated offline snapshot' further scopes it, and the read-only vocabulary nature clearly separates it from the search/get siblings.

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 context for use — browsing controlled vocabulary and source coverage from an offline snapshot — and instructs the agent to 'follow nextCall to read every entry,' which is actionable paging guidance. It stops short of explicitly routing to or away from siblings (e.g., resolving a party code before searching documents), so a 4 rather than 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.