get_city_translations
Retrieve all name translations for a city by providing its UUID. Get multilingual city names from the Geomelon dataset.
Instructions
Get all available name translations for a city by its UUID.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | City UUID |
Implementation Reference
- src/server.ts:51-59 (handler)The `get_city_translations` tool handler: registered via `server.tool()`, takes a city UUID (`id: z.string()`) and calls `client.cities.translations(id)` to get all available name translations for a city, returning the result as JSON text.
server.tool( 'get_city_translations', 'Get all available name translations for a city by its UUID.', { id: z.string().describe('City UUID') }, async ({ id }) => { const result = await client.cities.translations(id); return { content: [{ type: 'text', text: JSON.stringify(result, null, 2) }] }; }, ); - src/server.ts:51-54 (registration)Registration of the `get_city_translations` tool using `server.tool()` with the name 'get_city_translations' and a description.
server.tool( 'get_city_translations', 'Get all available name translations for a city by its UUID.', { id: z.string().describe('City UUID') }, - src/server.ts:54-54 (schema)Input schema for `get_city_translations`: expects `id` (string, UUID) describing 'City UUID'.
{ id: z.string().describe('City UUID') },