Skip to main content
Glama

sweden-parliament-mcp-server

Read parliamentary member

riksdag_get_member
Read-onlyIdempotent

Read one member register entry and assignment history by exact member ID. Assignment dates preserve source precision and do not establish historical sitting status.

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": {
      "memberId": "<memberId>"
    },
    "name": "riksdag_get_member"
  }
}

Input Schema

NameRequiredDescriptionDefault
memberIdYesNumeric memberId from riksdag_search_members, including leading zeros.
revisionNoRevision returned by the preceding assignment page.
assignmentLimitNoRequested assignments; applied maximum 100.
assignmentOffsetNoAssignment offset in published source order.

Output Schema

NameRequiredDescriptionDefault
nameNoPublished given and family names, when present.
errorNoPresent when the call failed. Absent on success.
foundNoWhether the exact member IID exists.
partyNoPublished party code.
sourceNoRequired attribution to the Swedish Parliament.
statusNoUnmodified source service-status label.
hasMoreNoWhether assignments remain.
noticesNoApplicable notices, possibly empty.
guidanceNoNext step when the member IID is absent.
memberIdNoNumeric register IID, including leading zeros; absent for some historical and European Parliament entries.
nextCallNoNext-assignment call.
revisionNoMember record revision.
givenNameNoPublished given name.
sourceUrlNoPublic register source URL.
truncatedNoWhether further assignments remain via nextCall.
familyNameNoPublished family name.
assignmentsNoPublished assignments in source order.
retrievedAtNoSource fetch time; unchanged on cache hits.
constituencyNoPublished constituency label.
returnedCountNoAssignments returned on this page.
upstreamQueryNoUpstream query echo, not proof a filter applied.
effectiveQueryNoNormalized input, defaults and local filters.
sourceRecordIdNoSource register UUID, distinct from the member IID.
assignmentLimitNoApplied assignment limit after clamping.
assignmentTotalNoExact total published assignments.
detailAvailableNoWhether a numeric member IID is published for riksdag_get_member.
assignmentOffsetNoApplied assignment offset.
upstreamWarningsNoSource warnings.
serviceClassificationNoSource-defined Swedish chamber service; unknown is retained.
requestedAssignmentLimitNoRequested assignment limit before clamping.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed21 schema fields changed
    • addedInput schema / properties / memberId / pattern
      Added value: +"^\\s*(?:\\d+)\\s*$"
    • changedOutput schema / properties / assignmentLimit / description
      Previous value: -"Applied assignment limit."New value: +"Applied assignment limit after clamping."
    • 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`: A memberId that passes the input pattern is not a valid ID after normalization. `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 / nextCall / description
      Previous value: -"Complete next-assignment call."New value: +"Next-assignment call."
    • changedOutput schema / properties / nextCall / properties / args / additionalProperties
      Previous value: -falseNew value: +{}
    • changedOutput schema / properties / nextCall / properties / args / description
      Previous value: -"Complete normalized next-assignment arguments."New value: +"Complete normalized arguments for riksdag_get_member, valid against its input schema; pass back unchanged."
    • removedOutput schema / properties / nextCall / properties / args / properties / assignmentLimit
      Removed value: -{
      -  "default": 20,
      -  "description": "Requested assignments; applied maximum 100.",
      -  "maximum": 9007199254740991,
      -  "minimum": 1,
      -  "type": "integer"
      -}
    • removedOutput schema / properties / nextCall / properties / args / properties / assignmentOffset
      Removed value: -{
      -  "default": 0,
      -  "description": "Assignment offset in published source order.",
      -  "maximum": 9007199254740991,
      -  "minimum": 0,
      -  "type": "integer"
      -}
    • removedOutput schema / properties / nextCall / properties / args / properties / memberId
      Removed value: -{
      -  "description": "Numeric memberId from riksdag_search_members, including leading zeros.",
      -  "minLength": 1,
      -  "type": "string"
      -}
    • removedOutput schema / properties / nextCall / properties / args / properties / revision
      Removed value: -{
      -  "description": "Revision returned by the preceding assignment page.",
      -  "type": "string"
      -}
    • removedOutput schema / properties / nextCall / properties / args / required
      Removed value: -[
      -  "memberId",
      -  "assignmentOffset",
      -  "assignmentLimit"
      -]
    • 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 / requestedAssignmentLimit / description
      Previous value: -"Requested assignment limit before clamping and fitting."New value: +"Requested assignment 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 / revision / description
      Previous value: -"Complete normalized member record revision."New value: +"Member record revision."
    • changedOutput schema / properties / truncated / description
      Previous value: -"Whether further assignments remain available through nextCall."New value: +"Whether further assignments remain via nextCall."
    • 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

A3.5/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. The description adds one genuinely useful caveat beyond them — that assignment dates preserve source precision and do not imply historical sitting status — but says nothing about the revision token, pagination ceilings (applied maximum 100), or behavior on unknown IDs.

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?

Two tight sentences with no filler, and the core purpose leads. The second sentence is dense but carries a real interpretive warning, so it earns its place, though its wording is slightly cryptic on first read.

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?

With an output schema present, return values need not be explained, and all parameters are schema-documented. The description covers purpose, keying, and a data caveat, leaving only minor gaps around revision/paging usage and error behavior.

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 four parameters including revision and the assignment paging fields are already documented in the schema. The description reinforces only the 'exact member ID' constraint and adds no new semantics for the remaining parameters; baseline 3 applies.

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?

States a specific verb and resource: 'Read one member register entry and assignment history by exact member ID.' The 'exact member ID' framing implicitly separates it from riksdag_search_members, though the sibling is never named, so differentiation requires a small inference.

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

Usage Guidelines3/5

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

The phrase 'by exact member ID' implies this is a follow-up lookup after a search, and the schema note ties memberId to riksdag_search_members. However, the description never explicitly says when to use this instead of the search tool, nor what to do if the ID is unknown.

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.