Skip to main content
Glama
malkreide

register-mcp

by malkreide

zefix_list_municipalities

Read-onlyIdempotent

Resolve a company's legalSeatId to a specific Swiss municipality, or list Swiss municipalities filtered by canton. Returns name, canton, BFS-ID and register district ID in Markdown or JSON.

Instructions

Listet Schweizer Gemeinden auf und löst die legalSeatId einer Firma auf.

legalSeatId ist eine BFS-Nummer. Sie trifft die Spalte BFS-ID, nicht die interne ID der Gemeinde. Die beiden sind bei keiner der 2112 Gemeinden gleich, und beide Wertebereiche überlappen sich — wer über die falsche Spalte nachschlägt, bekommt keinen Fehler, sondern eine andere, echte Schweizer Gemeinde: legalSeatId=261 ist Zürich, über ID gelesen aber Aarwangen (BE); 2701 ist Basel, über ID gelesen Embd (VS).

Deshalb macht legal_seat_id die Auflösung selbst, statt sie dem Aufrufer und einer Tabelle mit zwei ähnlich aussehenden Zahlenspalten zu überlassen.

Args: params (MunicipalitiesInput): - legal_seat_id (Optional[int]): legalSeatId einer Firma → genau eine Gemeinde. - canton (Optional[str]): Kanton-Filter (z.B. 'ZH'). Ohne Filter: alle ~2'100 Gemeinden. - response_format (str): 'markdown' oder 'json'

Returns: str: Gemeindeliste mit Name, Kanton, BFS-ID und Handelsregisterkreis-ID.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
paramsYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. Changed1 schema field changedv0.6.1
    • addedInput schema / $defs / MunicipalitiesInput / properties / legal_seat_id
      Added value: +{
      +  "anyOf": [
      +    {
      +      "minimum": 1,
      +      "type": "integer"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Die `legalSeatId` einer Firma (aus zefix_search_companies oder zefix_get_company). Löst genau eine Gemeinde auf. Bevorzugt gegenüber dem Nachschlagen in der Tabelle: `legalSeatId` ist eine BFS-Nummer und trifft die Spalte «BFS-ID», nicht die interne «ID».",
      +  "title": "Legal Seat Id"
      +}
  2. First observedv0.2.3

TDQS

A4.2/5.0
Behavior4/5

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

With readOnlyHint, idempotentHint, and destructiveHint all set, the annotations already cover the mutation and safety side. The description adds critical behavioral detail: `legalSeatId` matches the BFS-ID column, not the internal ID, values overlap so the wrong ID silently produces a real but wrong municipality, and the tool performs the resolution itself. It also states 'genau eine Gemeinde' for legal_seat_id and '~2.100 Gemeinden' without filters. The only real gap is the unspecified precedence when both `legal_seat_id` and `canton` are passed.

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?

The description is well structured: a one-line purpose, a necessary warning paragraph, then a compact Args/Returns section. The longer warning is fully justified because it prevents a silently incorrect lookup, and no sentences are wasted. The formatting with backticks and line breaks makes it easy to scan.

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, the description does not need to enumerate the return values in detail, but custom level covers name, canton, BFS-ID and Handelsregisterkreis-ID anyway. It handles the main semantic trap, and it outlines the behavior for the relevant input patterns. It is not complete on the boundary case of combining `legal_seat_id` and `canton`, and it could better point to the sibling tools that produce produce `legalSeatId` (zefix_get_company, zefix_search_companies).

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?

The schema already describes each nested parameter, so the description does not need to start from zero. It adds value with the concrete warning about BFS-ID vs ID, the 'genau eine Gemeinde' consequence, and the meaningful examples for `canton`. The only missing semantic layer is explanation of parameter compatibility or precedence when multiple arguments are provided at once.

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 opening sentence names a specific verb and resource: 'Listet Schweizer Gemeinden auf und löst die `legalSeatId` einer Firma auf.' It also immediately distinguishes the critical semantic mismatch between BFS-ID and internal ID, which makes the tool's purpose much clearer. This separates it naturally from sibling tools that focus on companies rather than on the lookup/resolution side.

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?

The description provides concrete context about parameter usage: legal_seat_id resolves exactly one Gemeinde, canton filters the list, and no filter returns about 2,100 municipalities. But it does not explicitly say when to choose this tool over its siblings, nor 'when not to use it'. It also leaves ambiguous how `canton` and `legal_seat_id` should be combined if an agent passes both.

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

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/malkreide/register-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server