Skip to main content
Glama

Riksdag & Regering

Sök röster i voteringar

search_voteringar
Read-onlyIdempotent

Sök i riksdagens voteringsdata. Varje rad är en ledamots röst i en votering. Sätt gruppering för att få summerade röster (ja/nej/avstår/frånvarande) i stället för enskilda röster. Vanliga användningar: hitta alla voteringar för ett betänkande → rm + beteckning + gruppering="votering_id", gå sedan vidare med get_votering. Hur en ledamot röstat → intressent_id (+ rm). Partiernas röster i ett ärende → rm + beteckning (+ punkt) + gruppering="parti". Ange alltid rm eller ett annat filter – utan filter blir svaret godtyckligt.

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

Input Schema

NameRequiredDescriptionDefault
rmNoRiksmöte, t.ex. "2025/26". Ett riksmöte löper från september till september.
rostNoVisa bara röster av den här typen.
antalNoMax antal rader. Standard 50 för enskilda röster, 500 vid gruppering.
partiNoPartibeteckning: S, M, SD, C, V, KD, L eller MP.
punktNoFörslagspunkt i betänkandet, t.ex. "1".
valkretsNoValkrets, t.ex. "Stockholms kommun".
beteckningNoBetänkandets beteckning, t.ex. "FiU1" eller "SoU12".
grupperingNoSummera rösterna per votering, parti, valkrets, ledamot, betänkande eller riksmöte.
intressent_idNoLedamotens id från search_ledamoter.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive/openWorld, so the safety profile is covered. The description adds genuine behavioral context beyond them: per-row vs aggregated result shape, and the warning that an unfiltered query returns arbitrary results. It does not discuss result volume or paging beyond what the schema's 'antal' parameter already documents.

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?

Front-loaded with what the tool returns and the single most consequential knob (gruppering), then the usage recipes, ending on the hard constraint about filters. The middle sentence is dense with repeated parameter names, but each sentence carries actionable information rather than filler.

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 a 9-parameter, all-optional search tool with no output schema, the description covers the essentials an agent needs: result granularity, aggregation mode, the mandatory-filter rule, and handoff to get_votering. Remaining details (defaults, enum values, max rows) are fully documented in the schema, so nothing critical is missing.

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 would be 3, but the description goes further by explaining which parameters combine for which intent (e.g. gruppering="parti" together with rm + beteckning + punkt, and intressent_id pairing with rm). That combination logic is not derivable from the schema field descriptions alone.

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+resource ('Sök i riksdagens voteringsdata') and immediately clarifies granularity: each row is one member's vote, and setting a grouping flips it to aggregated counts. It also names the natural successor tool, get_votering, so an agent can place it in a workflow without opening the schema.

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?

Gives three concrete when-to-use recipes with exact parameter combinations (rm + beteckning + gruppering="votering_id" for all votes on a committee report; intressent_id (+ rm) for one member; rm + beteckning (+ punkt) + gruppering="parti" for party totals). It also states an explicit exclusion — never call without rm or another filter, since the response would be arbitrary.

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.