Skip to main content
Glama

reference_city

Read-only

City facts (Wikidata) — Facts about a city or town by name= (optional country= to disambiguate, e.g. name=Paris&country=France): Wikidata id, country, administrative area, coordinates, latest population with year, area in km2, density, elevation in metres, time zones, current head of government (mayor), founding date, postal codes, website, sister cities, GeoNames and OpenStreetMap ids, plus other close matches. Source Wikidata (CC0). For agents enriching addresses, travel and relocation research, market sizing or geo lookups. 404 if no populated place matches. Price: $0.003 USDC (Base, via x402).

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

Input Schema

NameRequiredDescriptionDefault
nameYesNashville

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior5/5

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

Beyond the annotations, the description discloses the data source and license (Wikidata CC0), pricing ($0.003 USDC via x402), no-match behavior, and that close matches may be returned. These are substantive operational details an agent needs before invoking the 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?

The description is front-loaded with the core purpose and remains dense with relevant return-field and usage details. It is somewhat long and includes an exhaustive field list, but the information is useful rather than wasteful.

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 appropriately lists the main returned fields, payment details, and error behavior, making the tool understandable for a simple one-parameter lookup. The only meaningful gap is the mismatch between the described optional country parameter and the schema.

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% for the single declared parameter, and the description usefully clarifies that name is a city or town name. However, it also advertises an optional country= disambiguation parameter that is absent from the input schema, which could cause invalid or rejected calls.

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 states a specific resource ('City facts') and scope ('about a city or town by name'), and lists the main returned facts. It clearly differentiates this lookup from sibling reference tools for companies, airlines, currencies, and languages.

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?

It gives concrete usage contexts such as address enrichment, travel research, relocation, market sizing, and geo lookups, and explains the 404 no-match behavior. It does not explicitly route agents away from alternatives such as reference_wikidata, but the intended use is still clear.

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.

Resources