get_country
Retrieve comprehensive country details using a UUID, including translations and region data.
Instructions
Get full details for a single country by its UUID, including translations and regions.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Country UUID |
Implementation Reference
- src/server.ts:133-140 (handler)The actual handler for the 'get_country' tool. It accepts a single 'id' (country UUID) parameter, calls `client.countries.get(id)` to fetch the full country details, and returns the result as formatted JSON text.
server.tool( 'get_country', 'Get full details for a single country by its UUID, including translations and regions.', { id: z.string().describe('Country UUID') }, async ({ id }) => { const result = await client.countries.get(id); return { content: [{ type: 'text', text: JSON.stringify(result, null, 2) }] }; }, - src/server.ts:136-136 (schema)Input schema for 'get_country': a required string 'id' described as 'Country UUID', validated with Zod.
{ id: z.string().describe('Country UUID') }, - src/server.ts:131-131 (registration)Registration via `server.tool()` call inside the `createServer` function. The tool name 'get_country' is registered with a description and handler.
);