Skip to main content
Glama

Riksdag & Regering

Hämta voteringsresultat

get_votering
Read-onlyIdempotent

Hämta resultatet av en votering i kammaren: vad den gällde, utfall, totalsiffror och hur varje parti röstade. Sätt inkludera_ledamoter=true för alla 349 ledamöters röster. votering_id fås från search_voteringar (gruppering="votering_id") eller från utskottsforslag i get_dokument.

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": {
      "votering_id": "<votering_id>"
    },
    "name": "get_votering"
  }
}

Input Schema

NameRequiredDescriptionDefault
votering_idYesVoteringens id (UUID), t.ex. "F465E9EE-4AF1-4AFD-A5B4-4ED263B53F89".
inkludera_ledamoterNoTa med varje ledamots röst. Standard false.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, and open-world, so the safety profile is covered. The description adds behavior beyond that: it discloses the shape of the returned data (subject, outcome, totals, per-party breakdown) and that the optional flag expands the payload to all 349 members' votes — useful for anticipating response size.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three tight sentences: what is returned first, then the optional expansion flag, then the ID provenance. Every sentence carries distinct information and nothing is repeated from the schema verbatim.

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?

There is no output schema, so the description must describe the return value — and it does, listing the four result components. Both parameters are addressed, including the provenance of the required one, which is enough for correct invocation.

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 the baseline is 3, but the description adds meaning the schema does not: where votering_id originates (search_voteringar grouping or get_dokument) and the concrete scale of inkludera_ledamoter=true (all 349 members rather than a generic 'include members' toggle).

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 and resource ('Hämta resultatet av en votering i kammaren') and enumerates exactly what the result contains: subject, outcome, totals, and per-party voting. That content list distinguishes it from search_voteringar, which is named as the ID source rather than as an alternative way to get results.

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 concrete operational guidance: the required votering_id must come from search_voteringar (gruppering="votering_id") or from utskottsforslag in get_dokument, and inkludera_ledamoter=true is the way to get all 349 individual votes. It lacks an explicit statement of when not to use this tool (e.g. bulk/list retrieval), but the prerequisite chain and flag guidance are clear.

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.