Skip to main content
Glama
malkreide

lindas-mcp

by malkreide

resolve_municipality

Read-onlyIdempotent

Resolve a Swiss municipality's name or BFS number to its official LINDAS URI and BFS identifier. Use this to link municipality data across Swiss public datasets.

Instructions

Resolve a Swiss municipality to its LINDAS URI and BFS number.

The BFS commune number is the join key across the whole portfolio: the same number identifies the municipality in swiss-statistics-mcp, zurich-opendata-mcp and any cube that references a place. In LINDAS the URI is literally ld.admin.ch/municipality/.

Args: name_or_bfs: A municipality name ("Zürich") or a BFS number ("261"). language: Language for the name.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
languageNode
name_or_bfsYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYes
sourceNoData: LINDAS Linked Data Service, Swiss Federal Archives — https://lindas.admin.ch. Each cube declares its own licence; check the `licence` field before reuse.
returnedYes
match_typeNo'none' when the name/BFS number resolved to nothing.exact
provenanceNolive_sparql
suggestionNoActionable next step when match_type is 'none'.
retrieved_atYes
municipalitiesYes
Behavior4/5

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

Annotations already establish the operation as read-only and idempotent. The description adds valuable behavioral context beyond annotations, including the exact URI format ('ld.admin.ch/municipality/<BFS>') and the BFS number's role as a universal identifier. No contradiction exists.

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 concise and well-structured: a clear first sentence states the purpose, a short paragraph provides contextual significance, and an Args list documents parameters. Every sentence earns its place with no redundancy.

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 simple resolution tool with read-only annotations and an output schema, the description covers the essential purpose, parameter semantics, and contextual significance. The presence of an output schema means return values need not be detailed in the description.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema has no parameter descriptions (0% coverage), so the description's Args section is essential. It fully explains name_or_bfs with examples ("Zürich" or "261") and clarifies that language specifies the language for the name, compensating completely for the schema's lack of detail.

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 clearly states the tool's function: 'Resolve a Swiss municipality to its LINDAS URI and BFS number.' This provides a specific verb and outcome, and it is distinct from sibling tools like search_cubes or query_cube_observations, which focus on data cubes rather than municipality resolution.

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?

The description explains the BFS number as the join key across the portfolio, strongly implying when to use this tool for cross-tool consistency. It does not explicitly name alternatives or exclusion scenarios, but the context is clear enough to guide an agent.

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

Install Server

Other Tools

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/lindas-mcp'

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