Skip to main content
Glama
sedis-ab

@sedis/mcp

Official
by sedis-ab

List municipalities (shared)

fastighetsbenchmark_list_municipalities
Read-only

Resolve municipality names or codes to IDs for filtering property unit searches. Provides official municipality codes and names.

Instructions

Read-only. Look up municipality ids — the municipalityId filter of fastighetsbenchmark_search_property_units. Shared reference data, the same for every key. Each row has id, name, countryCode and code (the official municipality code; for Sweden the SCB kommunkod, e.g. '0180'). Example: nameContains 'Stockholm' → id 21. Read-only — never writes.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
codeNoExact official municipality code (Sweden: SCB kommunkod), e.g. '0180'.
pageNo1-indexed result page (first page = 1), e.g. 1.
sortNoComma-separated sort fields; prefix '-' for descending, e.g. '-name'.
pageSizeNoRows per page (v2 default 50, max 500), e.g. 50.
countryCodeNoISO 3166-1 alpha-2 country, e.g. 'SE'.
nameContainsNoCase-insensitive municipality-name fragment, e.g. 'Stockholm'.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
dataYesMunicipalities (shared reference data).
pageYesThe page you are on (1-indexed).
pageSizeNoRows per page echoed back by v2, e.g. 50.
totalCountNoTotal matching rows across all pages; null/absent when count is skipped.
totalPagesNoTotal page count; null/absent when count is skipped.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.2.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, so the doubled 'Read-only / never writes' phrasing is largely redundant. However, the description adds genuinely non-annotated context: this is shared reference data, identical for every key (i.e. no per-key or permission scoping), and it gives a concrete lookup example ('Stockholm' → id 21).

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 the purpose and the sibling linkage, and takes only a few sentences. Slight waste in stating read-only twice ('Read-only.' and 'never writes'), which duplicates the annotation and buys nothing.

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?

With an output schema present, return values need not be explained, and the description correctly focuses on purpose, shared-reference semantics, and id resolution. Nothing essential for correct invocation is missing, though a note on how paging interacts with filtering would round it out.

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 examples. The description reinforces the meaning of `code` (official municipality code, SCB kommunkod) and illustrates nameContains, but adds no syntax or behavioral detail the schema lacks. 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+resource ('Look up municipality ids') and ties it directly to the consuming parameter (`municipalityId` filter of `fastighetsbenchmark_search_property_units`), making it trivially distinguishable from the other list_* siblings. An agent knows exactly what it returns (id, name, countryCode, code).

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?

Explicitly ties usage to resolving ids for the `municipalityId` filter of a named sibling tool, which is strong when-to-use guidance. It does not state exclusions or say when the other reference-list siblings would be preferred, but the context is clear rather than implied.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.