Skip to main content
Glama

sweden-parliament-mcp-server

Read parliamentary main votes

riksdag_get_votes
Read-onlyIdempotent

Read authoritative report decisions and party main-vote groups separated by avser, or a member’s session main votes. Report mode requires report or documentId; ballots true with an explicit point adds individual member ballots and independent ballotPage continuation. Member mode requires memberId, accepts report and point to narrow the member’s rows locally, and returns rows in source-timestamp (systemDate) order, not vote-date order. Follow nextCall continuations. Main votes do not include every ballot round; empty rows never prove acclamation.

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": {
      "mode": "<mode>",
      "session": "<session>"
    },
    "name": "riksdag_get_votes"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeYesReport decision points or one member’s session main votes.
limitNoMember or report-ballot requested rows; default 20, applied maximum 500.
partyNoMember-mode party filter: code or exact reference label from riksdag_list_reference parties, historical codes such as FP included; report party groups are always complete.
pointNoOne report point; omit to traverse all points. Member mode: requires report; narrows rows to this point.
offsetNoMember or explicit report-ballot local row offset; default 0.
reportNoReport designation or session:designation; a committee prefix typed without its Swedish letter resolves (fou17 is FöU17). Report mode: alternative to documentId. Member mode: optional local row filter.
ballotsNoReport mode only: include individual ballots for an explicit point; default false.
sessionYesParliamentary session, e.g. 2024/25.
memberIdNoRequired in member mode: numeric memberId from riksdag_search_members, including leading zeros.
revisionNoCandidate-set or report-catalog revision from the previous page.
documentIdNoReport mode: documentId from riksdag_search_documents with documentType bet; alternative to report.
pointLimitNoAll-points report page size; default 5, applied maximum 10.
pointOffsetNoAll-points report local offset; default 0.
ballotRevisionNoBallot-page revision from the previous ballot page.

Output Schema

NameRequiredDescriptionDefault
modeNoApplied workflow.
errorNoPresent when the call failed. Absent on success.
foundNoWhether the report or member-vote selection is available; empty member rows still succeed.
limitNoApplied member row limit, clamped to 500.
partyNoApplied member-mode party filter.
votesNoWhole main ballots on this page: member rows in source-timestamp order (systemDate ascending, rows without one last, then report, point, avser, voteId), not vote-date order; report-point ballots by voteId, memberId, avser.
offsetNoApplied member row offset.
pointsNoWhole report points with every party aggregate and decision evidence.
reportNoPublished report designation (FöU1); a found:false result echoes the normalized request.
sourceNoRequired attribution to the Swedish Parliament.
hasMoreNoMore whole rows or report points remain.
noticesNoApplicable notices, possibly empty.
sessionNoNormalized parliamentary session.
guidanceNoHow to resolve a missing report.
memberIdNoNormalized member ID, preserving leading zeros.
nextCallNoContinuation advancing by the entries returned.
revisionNoHash of complete normalized candidates or authoritative point catalog.
ballotPageNoIndependent ballot pagination; report-point counts and revision retain their meanings.
documentIdNoAuthoritative report document ID.
pointLimitNoApplied report-point limit, clamped to 10.
totalCountNoExact filtered member-vote total or selected report-point total.
pointOffsetNoApplied report-point offset.
retrievedAtNoSource fetch time; unchanged on cache hits.
decisionDateNoDate the chamber decided the report, at source precision; absent until decided or when unpublished.
chamberStatusNoReport chamber status as published (Beslutat), the metadata.chamberStatus of riksdag_get_document; absent when unpublished.
returnedCountNoWhole rows or points returned.
upstreamQueryNoUpstream query echo, not proof a filter applied.
candidateCountNoValidated member/session candidate count, narrowed upstream by party if given, before local filtering.
effectiveQueryNoNormalized input, defaults and local filters.
requestedLimitNoRequested member row limit.
pointTotalCountNoExact report-point catalog count.
upstreamWarningsNoSource warnings.
requestedPointLimitNoRequested report-point limit.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • changedInput schema / properties / party / description
      Previous value: -"Member-mode local party filter; report party groups are always complete."New value: +"Member-mode party filter: code or exact reference label from riksdag_list_reference parties, historical codes such as FP included; report party groups are always complete."
    • changedOutput schema / properties / error / properties / data / properties / reason / description
      Previous value: -"Machine-readable failure mode. Declared by this tool: `invalid_filter`: Mode fields conflict, a required identifier is missing, a filter is invalid, or a report-mode documentId names a non-report, another session’s report, or a report other than the given report. `revision_changed`: The record changed during continuation. `unknown_point`: The existing report lacks the requested point. `ambiguous_report`: More than one exact report matched. `upstream_identity_mismatch`: Source identities contradict the required selection. `upstream_schema_invalid`: Payload violates the wire contract. `upstream_unavailable`: Source unavailable after retries. `upstream_queue_full`: Upstream queue is full. `candidate_limit_reached`: The complete main-ballot candidate boundary is reached. Other values are possible when a failure originates below the handler."New value: +"Machine-readable failure mode. Declared by this tool: `invalid_filter`: Mode fields conflict, a required identifier is missing, a filter is invalid, or a report-mode documentId names a non-report, another session’s report, or a report other than the given report. `revision_changed`: The record changed during continuation. `unknown_point`: The existing report lacks the requested point. `ambiguous_report`: More than one exact report matched. `upstream_identity_mismatch`: Source identities contradict the required selection. `upstream_schema_invalid`: Payload violates the wire contract. `upstream_unavailable`: Source unavailable after retries. `upstream_queue_full`: Upstream queue is full. `candidate_limit_reached`: A member or report-point vote list reached the source’s 10,000-row cap, so it may be cut short. Other values are possible when a failure originates below the handler."
    • changedOutput schema / properties / points / items / properties / parties / items / properties / party / description
      Previous value: -"Published party code."New value: +"Party code in its riksdag_list_reference spelling; an unlisted code as published."
    • changedOutput schema / properties / votes / items / properties / party / description
      Previous value: -"Published party code for this vote."New value: +"Party code for this vote in its riksdag_list_reference spelling; an unlisted code as published."
  2. Changed3 schema fields changed
    • changedInput schema / properties / report / description
      Previous value: -"Report designation or session:designation. Report mode: alternative to documentId. Member mode: optional local row filter."New value: +"Report designation or session:designation; a committee prefix typed without its Swedish letter resolves (fou17 is FöU17). Report mode: alternative to documentId. Member mode: optional local row filter."
    • addedOutput schema / properties / chamberStatus
      Added value: +{
      +  "description": "Report chamber status as published (Beslutat), the metadata.chamberStatus of riksdag_get_document; absent when unpublished.",
      +  "type": "string"
      +}
    • addedOutput schema / properties / decisionDate
      Added value: +{
      +  "description": "Date the chamber decided the report, at source precision; absent until decided or when unpublished.",
      +  "type": "string"
      +}
  3. Changed84 schema fields changed
    • changedInput schema / properties / ballotRevision / description
      Previous value: -"Returned ballot-page revision for consistent report-ballot continuation."New value: +"Ballot-page revision from the previous ballot page."
    • addedInput schema / properties / documentId / pattern
      Added value: +"^\\s*(?:(?:[A-Za-z\\u00C5\\u00C4\\u00D6\\u00E5\\u00E4\\u00F6\\u212A\\u212B\\u017F][A-Za-z\\u00C5\\u00C4\\u00D6\\u00E5\\u00E4\\u00F6\\u212A\\u212B\\u017F0-9\\u0308\\u030A]{3,}|[A-Za-z\\u212A][A-Za-z\\u212A0-9]19\\d{4}-[1-9]\\d*|[Ss][Ff][Ss]-[Nn]?[1-9]\\d{3}-[1-9]\\d*|(?:[Ss][Ff][Ss]\\s+)?[Nn]?[1-9]\\d{3}:[1-9]\\d*)\\s*)?$"
    • addedInput schema / properties / memberId / pattern
      Added value: +"^\\s*(?:(?:\\d+)\\s*)?$"
    • changedInput schema / properties / point / description
      Previous value: -"One authoritative report point; omit to traverse all points."New value: +"One report point; omit to traverse all points. Member mode: requires report; narrows rows to this point."
    • changedInput schema / properties / report / description
      Previous value: -"Report designation or session:designation; report mode only."New value: +"Report designation or session:designation. Report mode: alternative to documentId. Member mode: optional local row filter."
    • addedInput schema / properties / report / pattern
      Added value: +"^\\s*(?:(?:(?:[1-9]\\d{3}(?:\\/(?:\\d{2}|[1-9]\\d{3}))?\\s*:\\s*)?[A-Za-z\\u00C5\\u00C4\\u00D6\\u00E5\\u00E4\\u00F6\\u212A\\u212B][A-Za-z\\u00C5\\u00C4\\u00D6\\u00E5\\u00E4\\u00F6\\u212A\\u212B\\u0308\\u030A]*[1-9]\\d*)\\s*)?$"
    • changedInput schema / properties / revision / description
      Previous value: -"Returned complete-candidate or report-catalog revision for consistent continuation."New value: +"Candidate-set or report-catalog revision from the previous page."
    • changedInput schema / properties / session / description
      Previous value: -"Required parliamentary session, for example 2024/25."New value: +"Parliamentary session, e.g. 2024/25."
    • addedInput schema / properties / session / pattern
      Added value: +"^\\s*(?:[1-9]\\d{3}(?:\\/(?:\\d{2}|[1-9]\\d{3}))?)\\s*$"
    • addedOutput schema / $defs
      Added value: +{
      +  "RiksdagDecisionSummary": {
      +    "additionalProperties": false,
      +    "description": "Published vote-summary table without HTML wrapper layers.",
      +    "properties": {
      +      "caption": {
      +        "additionalProperties": false,
      +        "description": "Published caption components.",
      +        "properties": {
      +          "heading": {
      +            "description": "Published bold caption.",
      +            "type": "string"
      +          },
      +          "text": {
      +            "description": "Published caption text, separate from its heading.",
      +            "type": "string"
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "columns": {
      +        "description": "Ordered published column headings when a header is available.",
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": "array"
      +      },
      +      "footer": {
      +        "$ref": "#/$defs/RiksdagDecisionSummaryRow",
      +        "description": "Published totals row, when available."
      +      },
      +      "heading": {
      +        "description": "Published heading of a historical summary.",
      +        "type": "string"
      +      },
      +      "proposal": {
      +        "description": "Published proposal of a historical summary.",
      +        "type": "string"
      +      },
      +      "rows": {
      +        "description": "Ordered published body rows when a body is available.",
      +        "items": {
      +          "$ref": "#/$defs/RiksdagDecisionSummaryRow"
      +        },
      +        "type": "array"
      +      },
      +      "text": {
      +        "description": "Published summary text when the source provides a string instead of a table.",
      +        "type": "string"
      +      }
      +    },
      +    "type": "object"
      +  },
      +  "RiksdagDecisionSummaryRow": {
      +    "additionalProperties": false,
      +    "description": "One published summary row.",
      +    "properties": {
      +      "cells": {
      +        "description": "Ordered source cells; blank and zero values remain distinct.",
      +        "items": {
      +          "description": "Published cell text, preserving blank and zero; null means absent structured text.",
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "type": "array"
      +      },
      +      "label": {
      +        "description": "Published row heading.",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "cells"
      +    ],
      +    "type": "object"
      +  }
      +}
    • changedOutput schema / properties / ballotPage / properties / limit / description
      Previous value: -"Applied ballot limit after fitting."New value: +"Applied ballot row limit, clamped to 500."
    • changedOutput schema / properties / ballotPage / properties / nextCall / description
      Previous value: -"Complete report-ballot continuation call."New value: +"Report-ballot continuation call."
    • changedOutput schema / properties / ballotPage / properties / nextCall / properties / args / additionalProperties
      Previous value: -falseNew value: +{}
    • changedOutput schema / properties / ballotPage / properties / nextCall / properties / args / description
      Previous value: -"Complete normalized continuation arguments."New value: +"Complete normalized arguments for riksdag_get_votes, valid against its input schema; pass back unchanged."
    • removedOutput schema / properties / ballotPage / properties / nextCall / properties / args / properties / ballotRevision
      Removed value: -{
      -  "description": "Returned ballot-page revision for consistent report-ballot continuation.",
      -  "type": "string"
      -}
    • removedOutput schema / properties / ballotPage / properties / nextCall / properties / args / properties / ballots
      Removed value: -{
      -  "description": "Report mode only: include individual ballots for an explicit point; default false.",
      -  "type": "boolean"
      -}
    • removedOutput schema / properties / ballotPage / properties / nextCall / properties / args / properties / documentId
      Removed value: -{
      -  "description": "Report mode: documentId from riksdag_search_documents with documentType bet; alternative to report.",
      -  "type": "string"
      -}
    • removedOutput schema / properties / ballotPage / properties / nextCall / properties / args / properties / limit
      Removed value: -{
      -  "description": "Member or report-ballot requested rows; default 20, applied maximum 500.",
      -  "exclusiveMinimum": 0,
      -  "maximum": 9007199254740991,
      -  "type": "integer"
      -}
    • removedOutput schema / properties / ballotPage / properties / nextCall / properties / args / properties / memberId
      Removed value: -{
      -  "description": "Required in member mode: numeric memberId from riksdag_search_members, including leading zeros.",
      -  "type": "string"
      -}
    • removedOutput schema / properties / ballotPage / properties / nextCall / properties / args / properties / mode
      Removed value: -{
      -  "description": "Report decision points or one member’s session main votes.",
      -  "enum": [
      -    "report",
      -    "member"
      -  ],
      -  "type": "string"
      -}
    • removedOutput schema / properties / ballotPage / properties / nextCall / properties / args / properties / offset
      Removed value: -{
      -  "description": "Member or explicit report-ballot local row offset; default 0.",
      -  "maximum": 9007199254740991,
      -  "minimum": 0,
      -  "type": "integer"
      -}
    • removedOutput schema / properties / ballotPage / properties / nextCall / properties / args / properties / party
      Removed value: -{
      -  "description": "Member-mode local party filter; report party groups are always complete.",
      -  "type": "string"
      -}
    • removedOutput schema / properties / ballotPage / properties / nextCall / properties / args / properties / point
      Removed value: -{
      -  "description": "One authoritative report point; omit to traverse all points.",
      -  "exclusiveMinimum": 0,
      -  "maximum": 9007199254740991,
      -  "type": "integer"
      -}
    • removedOutput schema / properties / ballotPage / properties / nextCall / properties / args / properties / pointLimit
      Removed value: -{
      -  "description": "All-points report page size; default 5, applied maximum 10.",
      -  "exclusiveMinimum": 0,
      -  "maximum": 9007199254740991,
      -  "type": "integer"
      -}
    • removedOutput schema / properties / ballotPage / properties / nextCall / properties / args / properties / pointOffset
      Removed value: -{
      -  "description": "All-points report local offset; default 0.",
      -  "maximum": 9007199254740991,
      -  "minimum": 0,
      -  "type": "integer"
      -}
    • removedOutput schema / properties / ballotPage / properties / nextCall / properties / args / properties / report
      Removed value: -{
      -  "description": "Report designation or session:designation; report mode only.",
      -  "type": "string"
      -}
    • removedOutput schema / properties / ballotPage / properties / nextCall / properties / args / properties / revision
      Removed value: -{
      -  "description": "Returned complete-candidate or report-catalog revision for consistent continuation.",
      -  "type": "string"
      -}
    • removedOutput schema / properties / ballotPage / properties / nextCall / properties / args / properties / session
      Removed value: -{
      -  "description": "Required parliamentary session, for example 2024/25.",
      -  "minLength": 1,
      -  "type": "string"
      -}
    • removedOutput schema / properties / ballotPage / properties / nextCall / properties / args / required
      Removed value: -[
      -  "mode",
      -  "session"
      -]
    • changedOutput schema / properties / ballotPage / properties / returnedCount / description
      Previous value: -"Returned whole ballot rows."New value: +"Whole ballot rows returned."
    • changedOutput schema / properties / ballotPage / properties / totalCount / description
      Previous value: -"Exact complete point-ballot count."New value: +"Exact point-ballot count."
    • removedOutput schema / properties / ballotPage / properties / truncated
      Removed value: -{
      -  "description": "Response fitting shortened this ballot page.",
      -  "type": "boolean"
      -}
    • changedOutput schema / properties / ballotPage / required
      Previous value: -[
      -  "revision",
      -  "totalCount",
      -  "returnedCount",
      -  "offset",
      -  "limit",
      -  "requestedLimit",
      -  "truncated",
      -  "hasMore"
      -]New value: +[
      +  "revision",
      +  "totalCount",
      +  "returnedCount",
      +  "offset",
      +  "limit",
      +  "requestedLimit",
      +  "hasMore"
      +]
    • changedOutput schema / properties / candidateCount / description
      Previous value: -"Complete validated member/session candidate count, optionally narrowed upstream by party, before local filtering."New value: +"Validated member/session candidate count, narrowed upstream by party if given, before local filtering."
    • 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`: Mode fields conflict, a required mode identifier is missing, or a filter is invalid. `revision_changed`: The complete record changed during continuation. `unknown_point`: The existing report lacks the requested point. `ambiguous_report`: More than one exact report matched. `upstream_identity_mismatch`: Source identities contradict the required selection. `upstream_schema_invalid`: Present payload violates the wire contract. `upstream_unavailable`: Network or source failure remains after retries. `upstream_queue_full`: Process upstream queue is full. `candidate_limit_reached`: The complete main-ballot candidate boundary is reached. Other values are possible when a failure originates below the handler."New value: +"Machine-readable failure mode. Declared by this tool: `invalid_filter`: Mode fields conflict, a required identifier is missing, a filter is invalid, or a report-mode documentId names a non-report, another session’s report, or a report other than the given report. `revision_changed`: The record changed during continuation. `unknown_point`: The existing report lacks the requested point. `ambiguous_report`: More than one exact report matched. `upstream_identity_mismatch`: Source identities contradict the required selection. `upstream_schema_invalid`: Payload violates the wire contract. `upstream_unavailable`: Source unavailable after retries. `upstream_queue_full`: Upstream queue is full. `candidate_limit_reached`: The complete main-ballot candidate boundary is reached. Other values are possible when a failure originates below the handler."
    • changedOutput schema / properties / found / description
      Previous value: -"Whether the selected report or member-vote selection is available; empty member rows remain a successful selection."New value: +"Whether the report or member-vote selection is available; empty member rows still succeed."
    • changedOutput schema / properties / limit / description
      Previous value: -"Applied member row limit after fitting."New value: +"Applied member row limit, clamped to 500."
    • changedOutput schema / properties / nextCall / description
      Previous value: -"Complete continuation advancing by actual returned entries."New value: +"Continuation advancing by the entries returned."
    • changedOutput schema / properties / nextCall / properties / args / additionalProperties
      Previous value: -falseNew value: +{}
    • changedOutput schema / properties / nextCall / properties / args / description
      Previous value: -"Complete normalized continuation arguments."New value: +"Complete normalized arguments for riksdag_get_votes, valid against its input schema; pass back unchanged."
    • removedOutput schema / properties / nextCall / properties / args / properties / ballotRevision
      Removed value: -{
      -  "description": "Returned ballot-page revision for consistent report-ballot continuation.",
      -  "type": "string"
      -}
    • removedOutput schema / properties / nextCall / properties / args / properties / ballots
      Removed value: -{
      -  "description": "Report mode only: include individual ballots for an explicit point; default false.",
      -  "type": "boolean"
      -}
    • removedOutput schema / properties / nextCall / properties / args / properties / documentId
      Removed value: -{
      -  "description": "Report mode: documentId from riksdag_search_documents with documentType bet; alternative to report.",
      -  "type": "string"
      -}
    • removedOutput schema / properties / nextCall / properties / args / properties / limit
      Removed value: -{
      -  "description": "Member or report-ballot requested rows; default 20, applied maximum 500.",
      -  "exclusiveMinimum": 0,
      -  "maximum": 9007199254740991,
      -  "type": "integer"
      -}
    • removedOutput schema / properties / nextCall / properties / args / properties / memberId
      Removed value: -{
      -  "description": "Required in member mode: numeric memberId from riksdag_search_members, including leading zeros.",
      -  "type": "string"
      -}
    • removedOutput schema / properties / nextCall / properties / args / properties / mode
      Removed value: -{
      -  "description": "Report decision points or one member’s session main votes.",
      -  "enum": [
      -    "report",
      -    "member"
      -  ],
      -  "type": "string"
      -}
    • removedOutput schema / properties / nextCall / properties / args / properties / offset
      Removed value: -{
      -  "description": "Member or explicit report-ballot local row offset; default 0.",
      -  "maximum": 9007199254740991,
      -  "minimum": 0,
      -  "type": "integer"
      -}
    • removedOutput schema / properties / nextCall / properties / args / properties / party
      Removed value: -{
      -  "description": "Member-mode local party filter; report party groups are always complete.",
      -  "type": "string"
      -}
    • removedOutput schema / properties / nextCall / properties / args / properties / point
      Removed value: -{
      -  "description": "One authoritative report point; omit to traverse all points.",
      -  "exclusiveMinimum": 0,
      -  "maximum": 9007199254740991,
      -  "type": "integer"
      -}
    • removedOutput schema / properties / nextCall / properties / args / properties / pointLimit
      Removed value: -{
      -  "description": "All-points report page size; default 5, applied maximum 10.",
      -  "exclusiveMinimum": 0,
      -  "maximum": 9007199254740991,
      -  "type": "integer"
      -}
    • removedOutput schema / properties / nextCall / properties / args / properties / pointOffset
      Removed value: -{
      -  "description": "All-points report local offset; default 0.",
      -  "maximum": 9007199254740991,
      -  "minimum": 0,
      -  "type": "integer"
      -}
    • removedOutput schema / properties / nextCall / properties / args / properties / report
      Removed value: -{
      -  "description": "Report designation or session:designation; report mode only.",
      -  "type": "string"
      -}
    • removedOutput schema / properties / nextCall / properties / args / properties / revision
      Removed value: -{
      -  "description": "Returned complete-candidate or report-catalog revision for consistent continuation.",
      -  "type": "string"
      -}
    • removedOutput schema / properties / nextCall / properties / args / properties / session
      Removed value: -{
      -  "description": "Required parliamentary session, for example 2024/25.",
      -  "minLength": 1,
      -  "type": "string"
      -}
    • removedOutput schema / properties / nextCall / properties / args / required
      Removed value: -[
      -  "mode",
      -  "session"
      -]
    • 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 / pointLimit / description
      Previous value: -"Applied report-point limit after measured fitting."New value: +"Applied report-point limit, clamped to 10."
    • changedOutput schema / properties / pointTotalCount / description
      Previous value: -"Exact complete authoritative report-point catalog count."New value: +"Exact report-point catalog count."
    • changedOutput schema / properties / points / description
      Previous value: -"Whole report points with every party aggregate and complete decision evidence."New value: +"Whole report points with every party aggregate and decision evidence."
    • addedOutput schema / properties / points / items / properties / decision / properties / summaries / items / $ref
      Added value: +"#/$defs/RiksdagDecisionSummary"
    • removedOutput schema / properties / points / items / properties / decision / properties / summaries / items / additionalProperties
      Removed value: -false
    • removedOutput schema / properties / points / items / properties / decision / properties / summaries / items / description
      Removed value: -"Published vote-summary table without HTML wrapper layers."
    • removedOutput schema / properties / points / items / properties / decision / properties / summaries / items / properties
      Removed value: -{
      -  "caption": {
      -    "additionalProperties": false,
      -    "description": "Published caption components.",
      -    "properties": {
      -      "heading": {
      -        "description": "Published bold caption.",
      -        "type": "string"
      -      },
      -      "text": {
      -        "description": "Published caption text, separate from its heading.",
      -        "type": "string"
      -      }
      -    },
      -    "type": "object"
      -  },
      -  "columns": {
      -    "description": "Ordered published column headings when a header is available.",
      -    "items": {
      -      "type": "string"
      -    },
      -    "type": "array"
      -  },
      -  "footer": {
      -    "additionalProperties": false,
      -    "description": "Published totals row, when available.",
      -    "properties": {
      -      "cells": {
      -        "description": "Ordered source cells; blank and zero values remain distinct.",
      -        "items": {
      -          "description": "Published cell text, preserving blank and zero; null means absent structured text.",
      -          "type": [
      -            "string",
      -            "null"
      -          ]
      -        },
      -        "type": "array"
      -      },
      -      "label": {
      -        "description": "Published row heading.",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "cells"
      -    ],
      -    "type": "object"
      -  },
      -  "heading": {
      -    "description": "Published heading of a historical summary.",
      -    "type": "string"
      -  },
      -  "proposal": {
      -    "description": "Published proposal of a historical summary.",
      -    "type": "string"
      -  },
      -  "rows": {
      -    "description": "Ordered published body rows when a body is available.",
      -    "items": {
      -      "additionalProperties": false,
      -      "description": "One published summary row.",
      -      "properties": {
      -        "cells": {
      -          "description": "Ordered source cells; blank and zero values remain distinct.",
      -          "items": {
      -            "description": "Published cell text, preserving blank and zero; null means absent structured text.",
      -            "type": [
      -              "string",
      -              "null"
      -            ]
      -          },
      -          "type": "array"
      -        },
      -        "label": {
      -          "description": "Published row heading.",
      -          "type": "string"
      -        }
      -      },
      -      "required": [
      -        "cells"
      -      ],
      -      "type": "object"
      -    },
      -    "type": "array"
      -  },
      -  "text": {
      -    "description": "Published summary text when the source provides a string instead of a table.",
      -    "type": "string"
      -  }
      -}
    • removedOutput schema / properties / points / items / properties / decision / properties / summaries / items / type
      Removed value: -"object"
    • addedOutput schema / properties / points / items / properties / decision / properties / summary / $ref
      Added value: +"#/$defs/RiksdagDecisionSummary"
    • removedOutput schema / properties / points / items / properties / decision / properties / summary / additionalProperties
      Removed value: -false
    • removedOutput schema / properties / points / items / properties / decision / properties / summary / properties
      Removed value: -{
      -  "caption": {
      -    "additionalProperties": false,
      -    "description": "Published caption components.",
      -    "properties": {
      -      "heading": {
      -        "description": "Published bold caption.",
      -        "type": "string"
      -      },
      -      "text": {
      -        "description": "Published caption text, separate from its heading.",
      -        "type": "string"
      -      }
      -    },
      -    "type": "object"
      -  },
      -  "columns": {
      -    "description": "Ordered published column headings when a header is available.",
      -    "items": {
      -      "type": "string"
      -    },
      -    "type": "array"
      -  },
      -  "footer": {
      -    "additionalProperties": false,
      -    "description": "Published totals row, when available.",
      -    "properties": {
      -      "cells": {
      -        "description": "Ordered source cells; blank and zero values remain distinct.",
      -        "items": {
      -          "description": "Published cell text, preserving blank and zero; null means absent structured text.",
      -          "type": [
      -            "string",
      -            "null"
      -          ]
      -        },
      -        "type": "array"
      -      },
      -      "label": {
      -        "description": "Published row heading.",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "cells"
      -    ],
      -    "type": "object"
      -  },
      -  "heading": {
      -    "description": "Published heading of a historical summary.",
      -    "type": "string"
      -  },
      -  "proposal": {
      -    "description": "Published proposal of a historical summary.",
      -    "type": "string"
      -  },
      -  "rows": {
      -    "description": "Ordered published body rows when a body is available.",
      -    "items": {
      -      "additionalProperties": false,
      -      "description": "One published summary row.",
      -      "properties": {
      -        "cells": {
      -          "description": "Ordered source cells; blank and zero values remain distinct.",
      -          "items": {
      -            "description": "Published cell text, preserving blank and zero; null means absent structured text.",
      -            "type": [
      -              "string",
      -              "null"
      -            ]
      -          },
      -          "type": "array"
      -        },
      -        "label": {
      -          "description": "Published row heading.",
      -          "type": "string"
      -        }
      -      },
      -      "required": [
      -        "cells"
      -      ],
      -      "type": "object"
      -    },
      -    "type": "array"
      -  },
      -  "text": {
      -    "description": "Published summary text when the source provides a string instead of a table.",
      -    "type": "string"
      -  }
      -}
    • removedOutput schema / properties / points / items / properties / decision / properties / summary / type
      Removed value: -"object"
    • changedOutput schema / properties / report / description
      Previous value: -"Normalized report designation."New value: +"Published report designation (FöU1); a found:false result echoes the normalized request."
    • changedOutput schema / properties / requestedLimit / description
      Previous value: -"Original requested member row limit."New value: +"Requested member row limit."
    • changedOutput schema / properties / requestedPointLimit / description
      Previous value: -"Original requested report-point limit."New value: +"Requested report-point limit."
    • 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 returned whole rows or points."New value: +"Whole rows or points returned."
    • removedOutput schema / properties / truncated
      Removed value: -{
      -  "description": "Response fitting shortened the requested local 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."
    • changedOutput schema / properties / votes / description
      Previous value: -"Whole member or explicit report-point main ballots after local pagination."New value: +"Whole main ballots on this page: member rows in source-timestamp order (systemDate ascending, rows without one last, then report, point, avser, voteId), not vote-date order; report-point ballots by voteId, memberId, avser."
    • removedOutput schema / properties / votes / items / properties / date
      Removed value: -{
      -  "description": "Vote date at source precision.",
      -  "type": "string"
      -}
    • changedOutput schema / properties / votes / items / properties / documentId / description
      Previous value: -"Published linked report document ID."New value: +"Linked document ID, normalized as riksdag_get_document returns it; IDs outside that format keep their published spelling."
    • changedOutput schema / properties / votes / items / properties / report / description
      Previous value: -"Published committee-report designation."New value: +"Published designation: a committee report, or on point-zero rows a vote designation such as 0118-1."
    • changedOutput schema / properties / votes / items / properties / systemDate / description
      Previous value: -"Source system timestamp at published precision."New value: +"Source record timestamp at published precision; it orders member-mode rows and is not the vote date."
  4. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Annotations only declare readOnly/idempotent/openWorld; the description adds genuinely non-obvious behavior: rows come back in source-timestamp (systemDate) order rather than vote-date order, main votes exclude some ballot rounds, empty rows never prove acclamation, and nextCall/ballotPage continuations must be followed. These are exactly the caveats an agent would otherwise get wrong.

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?

Sentences are front-loaded: purpose first, then mode requirements, then caveats and continuation rules. It is dense but nearly every clause carries operational meaning; the jargon ('avser', 'main votes', 'acclamation') is used without definition, which costs a bit of clarity.

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 14-parameter dual-mode tool with an output schema, the description covers the essentials: required inputs per mode, how to continue pagination, and interpretation caveats. Remaining gap is the undefined domain concept 'avser' and no hint about what the returned decision/party-group structure looks like, though the output schema carries the latter.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so baseline would be 3, but the description adds mode-conditional semantics the schema only states per-field: that ballots=true only enriches an explicit point with an independent ballotPage continuation, and that report/point act as a local row filter in member mode. It stops short of explaining the 'avser' grouping or the revision fields' role in pagination.

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?

The description opens with a specific verb and resource ('Read authoritative report decisions and party main-vote groups ... or a member's session main votes') and names the two operating modes (report/member), which no sibling tool (documents, members, speeches, references) covers. An agent can tell immediately that this is the vote-data tool and which of its two shapes it needs.

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?

It states the selection conditions per mode ('Report mode requires report or documentId', 'Member mode requires memberId') and points to the sibling tools that supply those values (riksdag_search_documents with documentType bet, riksdag_search_members, riksdag_list_reference for party codes). What it does not do is explicitly say when to prefer report mode over member mode, leaving that inference to the caller.

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.