list_languages
Retrieve a list of languages supported in the Geomelon database. Paginate results with limit and offset parameters.
Instructions
List languages available in the Geomelon database.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max results | |
| offset | No | Pagination offset |
Implementation Reference
- src/server.ts:330-341 (handler)The handler function for the 'list_languages' tool. It calls client.languages.list(params) and returns the result as JSON text.
server.tool( 'list_languages', 'List languages available in the Geomelon database.', { limit: z.number().int().min(1).max(500).optional().describe('Max results'), offset: z.number().int().min(0).optional().describe('Pagination offset'), }, async (params) => { const result = await client.languages.list(params); return { content: [{ type: 'text', text: JSON.stringify(result, null, 2) }] }; }, ); - src/server.ts:333-336 (schema)Input schema for the 'list_languages' tool: optional limit (1-500) and offset (>=0) parameters.
{ limit: z.number().int().min(1).max(500).optional().describe('Max results'), offset: z.number().int().min(0).optional().describe('Pagination offset'), }, - src/server.ts:330-341 (registration)Registration of the 'list_languages' tool via server.tool() call, binding the name, description, schema, and handler.
server.tool( 'list_languages', 'List languages available in the Geomelon database.', { limit: z.number().int().min(1).max(500).optional().describe('Max results'), offset: z.number().int().min(0).optional().describe('Pagination offset'), }, async (params) => { const result = await client.languages.list(params); return { content: [{ type: 'text', text: JSON.stringify(result, null, 2) }] }; }, );