Skip to main content
Glama

Get city details

get_city
Read-only

Get one city by slug, including POI count, top distinctive tags, top categories, and a sample of its top POIs.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
langNoLanguage for human-readable name/description fields. EN is canonical.en
slugYesCity slug, e.g. 'berlin'.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
latYes
lngYes
nameYes
slugYes
name_enNo
top_tagsNo
poi_countYes
sample_poisNo
country_iso2Yes
wikidata_qidNo
top_categoriesNo

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations provide readOnlyHint and openWorldHint. Description adds value by specifying returned data (POI count, tags, categories, sample POIs), aligning with open world hint. No contradiction.

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?

Single sentence (21 words), front-loaded with verb and resource, no redundant information.

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 good annotations and output schema, description adequately covers main purpose and return data. Lacks details on error cases or prerequisites (e.g., slug existence), but fairly complete for a lookup tool.

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%; both parameters documented. Description does not add extra semantics beyond schema (e.g., no mention of lang parameter constraints or defaults). Baseline score of 3 applies.

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?

Clear verb 'Get' with specific resource 'city by slug'. Distinguishes from siblings like list_cities (multiple cities) and get_country (different entity). Includes specific data returned (POI count, tags, categories, sample POIs).

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?

No explicit guidance on when to use vs alternatives. Use case is implied (need single city details), but no mention of when to use list_cities instead or when not to use this tool. Siblings exist but description lacks usage notes.

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