Skip to main content
Glama

Riksdag & Regering

Sök riksdagsledamöter

search_ledamoter
Read-onlyIdempotent

Sök riksdagsledamöter på namn, parti, valkrets eller utskott. Visar som standard de 349 ledamöter som tjänstgör i kammaren just nu. Statsråd (som är lediga från sin plats) och tidigare ledamöter kommer med när inkludera_tidigare=true; vid namnsökning utan träff utökas sökningen automatiskt. Svaret ger intressent_id som används i get_ledamot, search_anforanden, search_voteringar och search_dokument.

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_ledamoter"
  }
}

Input Schema

NameRequiredDescriptionDefault
namnNoHela eller delar av namnet, t.ex. "Magdalena Andersson" eller "Kristersson".
antalNoMax antal ledamöter i svaret, standard 50.
partiNoPartibeteckning: S, M, SD, C, V, KD, L eller MP.
utskottNoUtskott som ledamoten sitter i, t.ex. FiU eller UbU.
valkretsNoValkrets, t.ex. "Stockholms kommun" eller "Skåne läns södra".
inkludera_tidigareNoTa med statsråd och tidigare ledamöter. Kräver ytterligare ett filter (namn, parti, valkrets eller utskott).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/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 real behavior: the default result set is limited to sitting members, statsråd on leave and former members are excluded unless a flag is set, and a name search with zero hits silently broadens the query. That last point is a non-obvious side effect an agent would otherwise misread as a failure.

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 sentences, front-loaded with the search axes, then default scope, then the chaining hint. Every sentence carries distinct information and nothing is repeated from the schema.

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 six-parameter, no-output-schema tool, the description covers default scope, the inclusion flag, search fallback behavior, and the key field needed for follow-up calls. The one omission is that results are capped (antal defaults to 50) while the population described is 349 members, so an agent may not realize a default query is truncated.

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 six parameters are already documented with types, bounds, and examples (including that inkludera_tidigare needs an accompanying filter). The description only restates the filter axes and adds the auto-broadening note, so it does not meaningfully extend parameter meaning beyond the schema.

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 ('Sök riksdagsledamöter') and names the four filter axes (namn, parti, valkrets, utskott), which immediately separates it from sibling get_ledamot, which is referenced as the id-based lookup it feeds into.

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 default scope (only the 349 currently serving members) and the exact condition for widening to statsråd and former members (inkludera_tidigare=true), and it points to the downstream tools that consume intressent_id. There is no explicit 'use X instead when...' exclusion, but the search-vs-get split is clear from the intressent_id hand-off.

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.