Skip to main content
Glama

Kildeverk

Compare municipalities

compare_municipalities
Read-onlyIdempotent

Two to five Norwegian municipalities side by side: population and its change, registered units in the business register (also per 1,000 inhabitants), schools, traffic counting points, electricity use per inhabitant and warnings in force. Accepts codes, old or current, and names. Built on municipality_profile, which gives each one in full.

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": {
      "municipalities": "<municipalities>"
    },
    "name": "compare_municipalities"
  }
}

Input Schema

NameRequiredDescriptionDefault
municipalitiesYesTwo to five codes (old or current) or names, e.g. ['Bergen', '0301'].

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already establish readOnly, idempotent, non-destructive and open-world, so the safety profile is covered; the description contributes the content profile instead. It discloses the exact metric set returned, the accepted identifier forms (codes old or current, plus names), and that values derive from municipality_profile. Missing only things like how missing metrics are represented.

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?

Two sentences, no filler. The comparison scope and metric list come first, and the routing hint about municipality_profile is placed last where it belongs as a follow-on pointer.

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 no output schema, the description carries the burden of describing return content, and it does so by enumerating every metric compared. Combined with the annotations covering safety and the fully documented single parameter, an agent has nearly everything needed; only edge-case behavior for missing data is unstated.

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?

Schema coverage is 100% and there is only one parameter, so baseline is 3. The description still earns credit by stating that both legacy and current municipality codes are accepted, a semantic nuance the schema example ('Bergen', '0301') does not make explicit.

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 names a concrete operation on a concrete resource — two to five Norwegian municipalities compared side by side — and enumerates exactly which metrics are compared (population, business-register units per 1,000 inhabitants, schools, traffic counting points, electricity per inhabitant, warnings). It also explicitly separates itself from the sibling municipality_profile, so an agent can choose between the two without opening a schema.

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?

Usage context is clear: this is the multi-municipality comparison tool, and 'Built on municipality_profile, which gives each one in full' tells an agent that single-municipality detail belongs to the sibling. The 2–5 bound is stated in prose as well as the schema. There is no explicit 'do not use this for a single municipality' exclusion, so it stops short of a full 5.

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.