Skip to main content
Glama

switzerland-parliament-mcp-server

Chparl Get Votes

chparl_get_votes
Read-onlyIdempotent

Find Nationalrat roll calls with mode votes and businessId, sessionId, or both. Use mode members with voteId for one paged roll call, or personNumber without voteId for member history optionally filtered by businessId and sessionId. Use mode groups with voteId for complete decision counts by parliamentary group. Member roll calls start in the 2003 winter session and exclude Ständerat member votes; an empty result does not prove no vote occurred. Member counts cover only delivered rows; groups mode reads all published member rows before reporting totals. Verbatim decisionTexts accompany code buckets when published. Code meanings include 1 yes, 2 no, 3 abstention, 4 present, 5 did not participate, 6 excused under Art. 57 para. 4, 7 president does not vote, and 8 resigned. Unknown codes and missing decisions are retained. Follow nextOffset with the same mode and filters.

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

Input Schema

NameRequiredDescriptionDefault
modeNoWorkflow: votes (default), members, or complete groups.votes
limitNoPaged modes only: votes default 10/max 50, members default 25/max 100; higher requests are clamped with notice.
offsetNoPaged modes only: starting row offset, default zero; continue using returned nextOffset.
voteIdNoMembers or groups only: positive Int32 Vote.ID discovered through votes mode; omit for personNumber history. Cannot combine with businessId or sessionId.
languageNoMetadata language: de (default), fr, or it; decision text remains as published.de
sessionIdNoVotes or member history only: positive Int32 Session.ID from chparl_list_reference topic sessions; combine with businessId to narrow discovery.
businessIdNoVotes or member history only: canonical eight-digit businessId from chparl_search_business, or a published short number such as 99.1234.
personNumberNoMembers only: exact PersonNumber from chparl_search_members, not a group or party identifier.

Output Schema

NameRequiredDescriptionDefault
modeNoVote workflow returned.
voteNoResolved roll-call metadata in members or groups mode.
errorNoPresent when the call failed. Absent on success.
foundNoWhether a supplied business or selected vote exists; unkeyed history/session searches succeed with true even when empty.
votesNoRoll-call metadata records on this page in votes mode.
groupsNoComplete group aggregates; empty when member data is unavailable.
noticeNoCombined clamping, empty-result, aggregate-size, or coverage guidance.
hasMoreNoWhether more rows remain after the delivered page; false for complete groups.
membersNoMember decisions on this page in members mode.
businessNoResolved business identity when supplied for vote discovery or member history.
coverageNoCoverage of the published member decisions.
guidanceNoIdentifier discovery guidance when the parent was not found.
nextOffsetNoOriginal offset plus delivered rows; absent when exhausted.
provenanceNoAttribution, publication status, and source download dates.
totalCountNoExact whole-query count of votes or filtered member rows, when supplied.
returnedCountNoNumber of delivered vote, member, or group records.
decisionCountsNoPage counts in members mode or complete nonempty vote counts in groups mode.
effectiveLimitNoEffective page size after mode-specific clamping.
effectiveFiltersNoNormalized mode, identifiers, metadata language, and applicable paging defaults.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed11 schema fields changed
    • changedInput schema / properties / limit / description
      Previous value: -"Paged modes only: votes default 10/max 50, members default 50/max 100; higher requests are clamped with notice."New value: +"Paged modes only: votes default 10/max 50, members default 25/max 100; higher requests are clamped with notice."
    • changedInput schema / properties / personNumber / description
      Previous value: -"Members only: exact PersonNumber from chparl_search_members, distinct from Person.ID or current group affiliation."New value: +"Members only: exact PersonNumber from chparl_search_members, not a group or party identifier."
    • changedOutput schema / properties / members / description
      Previous value: -"Whole member decisions delivered in members mode."New value: +"Member decisions on this page in members mode."
    • addedOutput schema / properties / members / items / properties / billTitle
      Added value: +{
      +  "description": "History only: published bill title on the Voting row.",
      +  "type": "string"
      +}
    • addedOutput schema / properties / members / items / properties / meaningNo
      Added value: +{
      +  "description": "History only: original meaning of a no decision on this roll call.",
      +  "type": "string"
      +}
    • addedOutput schema / properties / members / items / properties / meaningYes
      Added value: +{
      +  "description": "History only: original meaning of a yes decision on this roll call.",
      +  "type": "string"
      +}
    • changedOutput schema / properties / members / items / properties / personNumber / description
      Previous value: -"Published PersonNumber, distinct from Person.ID."New value: +"Published PersonNumber, the key chparl_get_member takes."
    • addedOutput schema / properties / members / items / properties / registrationNumber
      Added value: +{
      +  "description": "History only: published roll-call registration number; a chparl_search_transcripts vote passage carries it as its voteId.",
      +  "maximum": 9007199254740991,
      +  "minimum": -9007199254740991,
      +  "type": "integer"
      +}
    • addedOutput schema / properties / members / items / properties / subject
      Added value: +{
      +  "description": "History only: original roll-call subject on the Voting row.",
      +  "type": "string"
      +}
    • changedOutput schema / properties / notice / description
      Previous value: -"Combined clamping, whole-item fitting, empty-result, or coverage guidance."New value: +"Combined clamping, empty-result, aggregate-size, or coverage guidance."
    • changedOutput schema / properties / votes / description
      Previous value: -"Whole metadata records delivered in votes mode."New value: +"Roll-call metadata records on this page in votes mode."
  2. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the readOnly/idempotent annotations, the description discloses substantive behavioral traits: empty results do not prove a vote never occurred, member counts reflect only delivered rows while groups mode reads all published member rows, and unknown or missing codes are retained rather than dropped. These are exactly the caveats an agent needs to interpret results correctly.

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?

The definition is front-loaded: modes and their conditions come first, caveats after, follow-up rule last. It is dense but nearly every sentence carries non-obvious information; the enumerated decision-code legend is the only portion that could be compressed or moved to the output schema side.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For an eight-parameter, three-mode, open-world tool, the description covers mode selection, filter compatibility, pagination continuation, and result-interpretation caveats. An output schema exists, and the code legend still adds useful decoding context rather than duplicating return-value documentation.

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 every parameter, and the description largely restates the mode/parameter pairing it already encodes. It adds minor orientation about where IDs come from (votes mode, chparl_search_business, chparl_search_members), but no new constraint or format detail beyond the structured data.

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 names a specific verb and resource ('Find Nationalrat roll calls') and immediately enumerates the three workflows the tool serves, so an agent can tell what it does before opening the schema. The scope restrictions (Ständerat member votes excluded, coverage starting winter 2003) sharpen the resource definition further.

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

Usage Guidelines5/5

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

It states mode-by-mode conditions explicitly: 'votes' for discovery by businessId/sessionId, 'members' with voteId for one paged roll call, 'members' with personNumber for history, and 'groups' with voteId for complete decision counts. It also says which filters are valid in which mode and closes with the follow-up rule ('Follow nextOffset with the same mode and filters').

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.