Skip to main content
Glama

discovery_localities_retrieve

One city or town by its numeric id.

Method: GET /api/v1/discovery/localities/{id}/

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": {
      "id": "<id>"
    },
    "name": "discovery_localities_retrieve"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesA unique integer value identifying this City.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden and delivers little: it omits what happens on an unknown id (error vs empty), whether authentication is required, and what fields the returned city contains. The HTTP method/path is disclosed, which is mildly useful, but not behavioral context an agent needs to call it correctly.

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?

The identifying information is front-loaded in one short sentence with no filler. The trailing 'Method: GET /api/v1/...' line is largely redundant with the tool name and tool type, but it is compact enough not to hurt.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema and no annotations, the description should say at least roughly what a locality record returns and how misses are handled. For a one-parameter lookup that is a modest but real gap, leaving the agent unable to predict the response shape.

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 coverage is 100% and the single `id` parameter is already documented as 'A unique integer value identifying this City.' The description's 'numeric `id`' merely restates that constraint, so baseline 3 applies.

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 specific resource and scope: 'One city or town by its numeric `id`' — singular retrieval, which implicitly distinguishes it from the localities list sibling. It never names an alternative explicitly, but the verb+resource+cardinality is unambiguous.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No when-to-use guidance, no prerequisites, and no mention of when to prefer the list or reference endpoints instead. An agent must infer from the word 'One' that this is the single-record fetch path.

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.