Generic tools
The curated tools cover what an agent usually needs. Three more reach the raw API, operation by operation, as the spec describes it:
libretranslate_resourceslists the operations (translate,detect,listLanguages,getFrontendSettings,suggest,health). With aquery, only the matching ones.libretranslate_describegives one operation's method, path, body schema and an examplelibretranslate_callinput. Withschema, it expands one schema from the spec (depthlevels deep, default 3).libretranslate_callruns it:operationis theoperationId(listLanguages) orMETHOD /path(GET /languages), andbodyis the JSON request body.
{ "operation": "translate", "body": { "q": "Olá", "source": "pt", "target": "en", "alternatives": 2 } }
Safety
- Unknown body fields are refused, so a typo does not silently drop a setting.
api_keyis refused: the server sends the configured key itself, and the schemas leave it out.- Operations that write to the instance (
suggest) needconfirm: true. The agent is told to ask you first. - File upload is left out of the catalog:
libretranslate_translate_filecovers it from a local path. - A long answer is cut at 60,000 characters, saying so.
The catalog is generated from the same OpenAPI spec as the SDK (pnpm codegen:mcp).