get_language
Retrieve details for a language by providing its UUID.
Instructions
Get details for a single language by its UUID.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Language UUID |
Implementation Reference
- src/server.ts:343-351 (registration)Registration of the 'get_language' tool via server.tool() with name, description, and input schema.
server.tool( 'get_language', 'Get details for a single language by its UUID.', { id: z.string().describe('Language UUID') }, async ({ id }) => { const result = await client.languages.get(id); return { content: [{ type: 'text', text: JSON.stringify(result, null, 2) }] }; }, ); - src/server.ts:347-350 (handler)Handler function that executes the tool logic: calls client.languages.get(id) and returns the result.
async ({ id }) => { const result = await client.languages.get(id); return { content: [{ type: 'text', text: JSON.stringify(result, null, 2) }] }; }, - src/server.ts:346-346 (schema)Input schema for the tool: requires a single 'id' parameter typed as z.string().
{ id: z.string().describe('Language UUID') },