Skip to main content
Glama

discovery_localities_list

Cities and towns, with the numeric id that companies_search takes in cities. Filter with name (substring), region and country (ids from the region and country lookups). Narrow by region: a bare city name such as Springfield matches many places.

Method: GET /api/v1/discovery/localities/

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "discovery_localities_list"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNo
limitNoNumber of results to return per page.
id__inNoMultiple values may be separated by commas.
offsetNoThe initial index from which to return the results.
regionNo
countryNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

No annotations are supplied, but the description carries real behavioral weight: it discloses the HTTP method and endpoint (GET /api/v1/discovery/localities/), signals a read-only lookup, and warns that name matching is substring-based and non-unique. It does not cover auth requirements, rate limits, or result ordering/paging behavior, which are the remaining gaps for an unannotated tool.

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?

Three short sentences, front-loaded with what the tool returns and why the id matters, followed by filtering rules and the ambiguity caveat. The clause 'Narrow by region: a bare city name such as Springfield matches many places' compresses the cause and the remedy into one line at the cost of a slightly jarring jump.

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 6-parameter, zero-required lookup with no output schema and no annotations, the description covers purpose, filter semantics, and the endpoint. What is missing is a hint at the shape of a returned record (name plus id, and whether region/country appear) and paging expectations, which matter because there is no output schema to fall back on.

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 50%, with `region` and `country` undocumented in the schema; the description compensates by explaining they take ids from the region and country lookups. It also clarifies that `name` is a substring match rather than exact, which the schema does not say. `id__in` and `offset`/`limit` are left to the schema.

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?

States the exact resource (cities and towns) and its most important contract: the numeric `id` is the value `companies_search` expects in its `cities` parameter. That cross-tool linkage immediately separates it from the sibling country/region lookups, which it implicitly names as the source of the region and country ids.

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?

Gives concrete guidance on how to use it: filter by `name` (substring), narrow by `region` from the region lookup, and use `country` ids from the country lookup. The warning that a bare name like `Springfield` matches many places is practical steering. It stops short of naming an alternative tool or stating when not to use this lookup, so it falls shy of a 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.