Skip to main content
Glama

sweden-parliament-mcp-server

Search parliamentary members

riksdag_search_members
Read-onlyIdempotent

Find members and ministers by name, party, constituency and service status. Defaults to the service register; register all includes earlier source records through a larger cold request that may time out. Use numeric memberId with riksdag_get_member for assignment history.

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

Input Schema

NameRequiredDescriptionDefault
limitNoRequested rows; applied maximum 100.
partyNoParty code or exact reference label.
offsetNoLocal row offset.
sittingNoSource service classification; all retains unknown status.all
registerNoRegister scope; all includes historical records, and a cold request can reach the normal timeout.service
revisionNoRevision returned by a preceding page.
constituencyNoExact constituency reference label or code, applied locally.
nameContainsNoStrict all-token local name filter, ignoring case and diacritics.

Output Schema

NameRequiredDescriptionDefault
errorNoPresent when the call failed. Absent on success.
itemsNoFiltered member-register rows.
limitNoApplied row limit after clamping.
offsetNoApplied local offset.
sourceNoRequired attribution to the Swedish Parliament.
hasMoreNoWhether filtered rows remain.
noticesNoApplicable notices, possibly empty.
nextCallNoNext-page call.
revisionNoComplete candidate-set revision.
totalCountNoExact count after local filtering.
retrievedAtNoSource fetch time; unchanged on cache hits.
returnedCountNoRows in this page.
upstreamQueryNoUpstream query echo, not proof a filter applied.
candidateCountNoReturned candidate records in the selected register scope.
effectiveQueryNoNormalized input, defaults and local filters.
requestedLimitNoRequested row limit before clamping.
upstreamWarningsNoSource warnings.
sourceReportedCountNoSource-reported hits; can differ from returned candidates in all scope.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed27 schema fields changed
    • changedInput schema / properties / register / description
      Previous value: -"Register scope; all includes historical records and can require a large cold request that reaches the normal timeout."New value: +"Register scope; all includes historical records, and a cold request can reach the normal timeout."
    • changedOutput schema / anyOf
      Previous value: -[
      -  {
      -    "not": {
      -      "required": [
      -        "error"
      -      ]
      -    },
      -    "required": [
      -      "items",
      -      "candidateCount",
      -      "sourceReportedCount",
      -      "totalCount",
      -      "returnedCount",
      -      "offset",
      -      "limit",
      -      "requestedLimit",
      -      "truncated",
      -      "hasMore",
      -      "revision",
      -      "effectiveQuery",
      -      "source",
      -      "retrievedAt",
      -      "notices"
      -    ]
      -  },
      -  {
      -    "required": [
      -      "error"
      -    ]
      -  }
      -]New value: +[
      +  {
      +    "not": {
      +      "required": [
      +        "error"
      +      ]
      +    },
      +    "required": [
      +      "items",
      +      "candidateCount",
      +      "sourceReportedCount",
      +      "totalCount",
      +      "returnedCount",
      +      "offset",
      +      "limit",
      +      "requestedLimit",
      +      "hasMore",
      +      "revision",
      +      "effectiveQuery",
      +      "source",
      +      "retrievedAt",
      +      "notices"
      +    ]
      +  },
      +  {
      +    "required": [
      +      "error"
      +    ]
      +  }
      +]
    • changedOutput schema / properties / candidateCount / description
      Previous value: -"Actual returned candidate records in the selected register scope."New value: +"Returned candidate records in the selected register scope."
    • 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 / error / properties / data / properties / reason / description
      Previous value: -"Machine-readable failure mode. Declared by this tool: `invalid_filter`: Unknown code or malformed identifier. `revision_changed`: Continuation revision no longer matches. `upstream_identity_mismatch`: Detail identity or filter rows contradict required identity. `upstream_schema_invalid`: Present payload violates wire contract. `upstream_unavailable`: Network or service error after retries. `upstream_queue_full`: Process upstream queue is full. `candidate_limit_reached`: Complete-list safety boundary reached. Other values are possible when a failure originates below the handler."New value: +"Machine-readable failure mode. Declared by this tool: `invalid_filter`: Unknown party or constituency code, or punctuation-only nameContains. `revision_changed`: Revision no longer matches. `upstream_identity_mismatch`: Source rows contradict the required identity. `upstream_schema_invalid`: Payload violates the wire contract. `upstream_unavailable`: Source unavailable after retries. `upstream_queue_full`: Upstream queue is full. `candidate_limit_reached`: Complete-list safety limit reached. Other values are possible when a failure originates below the handler."
    • changedOutput schema / properties / limit / description
      Previous value: -"Applied row limit."New value: +"Applied row limit after clamping."
    • changedOutput schema / properties / nextCall / description
      Previous value: -"Complete next-page call."New value: +"Next-page call."
    • changedOutput schema / properties / nextCall / properties / args / additionalProperties
      Previous value: -falseNew value: +{}
    • changedOutput schema / properties / nextCall / properties / args / description
      Previous value: -"Complete normalized next-page arguments."New value: +"Complete normalized arguments for riksdag_search_members, valid against its input schema; pass back unchanged."
    • removedOutput schema / properties / nextCall / properties / args / properties / constituency
      Removed value: -{
      -  "description": "Exact constituency reference label or code, applied locally.",
      -  "type": "string"
      -}
    • removedOutput schema / properties / nextCall / properties / args / properties / limit
      Removed value: -{
      -  "default": 20,
      -  "description": "Requested rows; applied maximum 100.",
      -  "maximum": 9007199254740991,
      -  "minimum": 1,
      -  "type": "integer"
      -}
    • removedOutput schema / properties / nextCall / properties / args / properties / nameContains
      Removed value: -{
      -  "description": "Strict all-token local name filter, ignoring case and diacritics.",
      -  "type": "string"
      -}
    • removedOutput schema / properties / nextCall / properties / args / properties / offset
      Removed value: -{
      -  "default": 0,
      -  "description": "Local row offset.",
      -  "maximum": 9007199254740991,
      -  "minimum": 0,
      -  "type": "integer"
      -}
    • removedOutput schema / properties / nextCall / properties / args / properties / party
      Removed value: -{
      -  "description": "Party code or exact reference label.",
      -  "type": "string"
      -}
    • removedOutput schema / properties / nextCall / properties / args / properties / register
      Removed value: -{
      -  "default": "service",
      -  "description": "Register scope; all includes historical records and can require a large cold request that reaches the normal timeout.",
      -  "enum": [
      -    "service",
      -    "all"
      -  ],
      -  "type": "string"
      -}
    • removedOutput schema / properties / nextCall / properties / args / properties / revision
      Removed value: -{
      -  "description": "Revision returned by a preceding page.",
      -  "type": "string"
      -}
    • removedOutput schema / properties / nextCall / properties / args / properties / sitting
      Removed value: -{
      -  "default": "all",
      -  "description": "Source service classification; all retains unknown status.",
      -  "enum": [
      -    "all",
      -    "serving",
      -    "not_serving"
      -  ],
      -  "type": "string"
      -}
    • removedOutput schema / properties / nextCall / properties / args / required
      Removed value: -[
      -  "register",
      -  "sitting",
      -  "offset",
      -  "limit"
      -]
    • 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 / requestedLimit / description
      Previous value: -"Requested row limit before clamping and fitting."New value: +"Requested row limit 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 / sourceReportedCount / description
      Previous value: -"Source-reported register hits; may differ from actual returned candidates in all scope."New value: +"Source-reported hits; can differ from returned candidates in all scope."
    • removedOutput schema / properties / truncated
      Removed value: -{
      -  "description": "Whether response fitting shortened the selected 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?

Annotations already cover read-only, idempotent and open-world semantics, and the description adds behavior those fields cannot express: it defaults to the current service register, and widening to register=all pulls earlier source records via a cold request that may time out. That timeout/cold-request warning is exactly the kind of operational trait an agent needs before choosing the scope.

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?

Three sentences, all load-bearing, with the core capability front-loaded before the scope caveat and the sibling pointer. The middle clause ("register all includes earlier source records through a larger cold request that may time out") is slightly redundant with the register parameter description, but the redundancy is minor and earns its place as a warning.

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?

Eight optional parameters are fully documented in the schema and an output schema exists, so the description need not explain return values. What it must add — default scope, the cost of the broad register, and where assignment history lives — it delivers. Only the pagination interplay between limit, offset and revision is left implicit.

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 the schema already defines limit, offset, sitting, register, revision, nameContains and the rest; the description only restates the searchable facets at a high level. It reinforces the register default and the timeout trade-off, which the schema also mentions, but adds no syntax or format detail the schema lacks. 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-plus-resource ("Find members and ministers") and enumerates the facets it searches on: name, party, constituency, service status. It also distinguishes itself from the sibling riksdag_get_member by pointing that tool at assignment history, so an agent can separate the two without opening either schema.

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 real routing guidance: this tool is the search entry point, and "Use numeric memberId with riksdag_get_member for assignment history" names the alternative and the condition that selects it. It also sets the default register scope and warns when to expect the slower path, though it does not spell out when search is the wrong tool for other tasks.

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.