Skip to main content
Glama

Riksdag & Regering

Hämta ledamot

get_ledamot
Read-onlyIdempotent

Hämta en ledamots profil: parti, valkrets, status, biografi (utbildning, anställningar, tidigare uppdrag) och uppdrag i riksdag, utskott och regering. Visar pågående uppdrag som standard.

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": {
      "intressent_id": "<intressent_id>"
    },
    "name": "get_ledamot"
  }
}

Input Schema

NameRequiredDescriptionDefault
alla_uppdragNoTa med avslutade uppdrag. Standard false.
intressent_idYesLedamotens id från search_ledamoter, t.ex. "0218878014918".

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/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 openWorld. The description adds genuinely non-obvious behavior beyond them: completed assignments are excluded by default ("Visar pågående uppdrag som standard"), which tells the agent the default result is a filtered view. No mention of failure behavior for unknown ids, which keeps it off a 5.

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?

Two sentences, front-loaded with the action and the returned fields, then the default-scope caveat. The parenthetical field list is dense but each item is informative; no filler.

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?

A simple single-record read with full schema annotations and no output schema, so the description's enumeration of returned data is valuable and largely sufficient. Only the behavior for an invalid or unknown intressent_id is left unspecified.

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 coverage is 100%: intressent_id carries length bounds, a concrete example and its source (search_ledamoter), and alla_uppdrag documents its default. The description only reinforces the default-filter behavior rather than adding new parameter meaning, so baseline 3 applies.

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 ("Hämta") and resource ("en ledamots profil") and enumerates exactly what the profile contains: parti, valkrets, status, biografi och uppdrag. An agent can tell this is a single-member lookup rather than a search, distinct from search_ledamoter and get_anforande.

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

Usage Guidelines3/5

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

Usage is implied: fetch one member's profile by id. There is no explicit when-to-use versus search_ledamoter or get_anforande, and no exclusions or prerequisites in the description itself (the id provenance note lives only in the schema). Minimum-viable guidance.

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.