Skip to main content
Glama

Find place codes

mb_find_place
Read-onlyIdempotent

Convert city, airport, station, or hotel names into the codes and IDs needed for flight, train, bus, taxi, and hotel searches.

Instructions

Turn a city, airport, station or hotel name into the code a search takes.

flight: airports (Iranian airports, IATA code for domestic flights; Tehran domestic is THR, not IKA; prefer these to XXXALL codes for domestic routes) and cities (any country, XXXALL city code = all its airports, plus each airport). train: station ids (Tehran 1, Mashhad 191). bus / taxi: 8-digit city ids (Tehran 11320000 = all terminals; terminal ids such as 11321006 Tehran South). hotel: city slugs for mb_search_hotels / mb_city_hotels and hotel slugs for mb_hotel / mb_hotel_rooms. Next: mb_search_flights, mb_search_trains, mb_search_buses, mb_search_taxis or mb_search_hotels.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modeYesWhich search the code is for; each mode uses its own ids.
limitNoMax places per list.
queryYesPlace name in Persian or English, or a code, e.g. 'مشهد', 'tehran' or 'IST'.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already declare read-only, open-world, idempotent, non-destructive behavior, so the description is not burdened with safety disclosure. It adds substantial domain-specific behavior: output ID shapes per mode, IATA versus city codes, railroad station IDs, 8-digit bus/taxi city IDs, and hotel slug conventions. These details go well beyond the annotations.

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?

The description is front-loaded with the core purpose, then organized by mode with specific examples. Despite its density, every sentence provides useful information for invoking the tool correctly. There is no filler or repetition.

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

Completeness5/5

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

Given the complexity of five modes and differing ID formats, the description is complete enough for correct invocation. Annotations, full schema descriptions, and an output schema are present, so the description need not explain return structure or safety. It covers mode-specific semantics and next steps well.

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 description coverage is 100%, so the baseline is 3. The description adds meaningful semantics for the mode parameter by explaining what each mode returns and giving examples, though it does not add much for limit and query beyond the schema examples. This justifies a score above baseline but not perfect.

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 verb and resource: turning a place name into the code a search takes. It clearly distinguishes this lookup/resolution tool from sibling search tools such as mb_search_flights and mb_search_hotels. The mode-specific breakdown further clarifies what the tool produces.

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?

The description gives clear context and mode-specific routing, including Next tools to use after obtaining codes. It does not explicitly state when not to use this tool or what alternative exists if the code is already known. Still, the mapping from mode to downstream search tool is strong guidance.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.