Skip to main content
Glama

comuni_codice

Un comune per codice ISTAT (6 cifre, es. '058091' per Roma, '015146' per Milano): nome, provincia, regione, coordinate, capoluogo. Se il codice non c'e' si prova anche per nome.

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": {
      "codice": "<codice>"
    },
    "name": "comuni_codice"
  }
}

Input Schema

NameRequiredDescriptionDefault
codiceYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It does disclose a genuine behavioral trait beyond the schema: the tool silently falls back to a name match when the code is absent, and it lists the returned fields. It does not say what happens when neither code nor name matches, nor whether the fallback can return a wrong/unexpected match, which matters for a silent-substitution behavior.

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?

A single front-loaded sentence with an embedded parenthetical and a trailing fallback clause; no filler. Minor deduction because the fallback clause ('se il codice non c'e' si prova anche per nome') is compressed to the point of slight ambiguity about how the name is derived.

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?

For a one-parameter, no-annotations, no-output-schema tool, the description covers input format, examples, return fields, and fallback behavior, which is close to sufficient. The remaining gap is the not-found/error outcome, which an agent would need to decide whether to retry with 'comuni'.

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 has 0% description coverage on the single 'codice' parameter, so the description must compensate and largely does: it specifies '6 cifre' and gives two concrete six-digit examples, which pins down the expected format. It omits any statement about whether padding or non-numeric input is tolerated.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a concrete lookup: a municipality by 6-digit ISTAT code, plus parenthetical examples for Roma and Milano, and enumerates the returned fields (nome, provincia, regione, coordinate, capoluogo). It does not explicitly distinguish itself from the sibling 'comuni' tool, though the fallback clause hints at the name-based alternative.

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 rather than stated: use it when you hold an ISTAT code. The closing sentence ('se il codice non c'e' si prova anche per nome') signals that a name-based path exists but never says to call 'comuni' instead when no code is available, so no explicit when-not guidance is offered.

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.