libretranslate_detect_language

Pack: libretranslate · Connect: https://pipeworx.io/mcp (see Connect below for a single-pack URL)

No MCP client? Call it directly: GET https://gateway.pipeworx.io/v1/tools/libretranslate_detect_language for the schema, then POST the same URL with its arguments for the data.

Detect the source language of a piece of text. Returns ranked language candidates with confidence.

Parameters

NameTypeRequiredDescription
textstringyesText to analyze

Example call

Arguments

{
  "text": "Bonjour, comment allez-vous?"
}

curl

curl -X POST https://gateway.pipeworx.io/libretranslate/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"libretranslate_detect_language","arguments":{"text":"Bonjour, comment allez-vous?"}}}'

TypeScript (@pipeworx/sdk)

import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();

const result = await pipeworx.call('libretranslate_detect_language', {
  "text": "Bonjour, comment allez-vous?"
});

Response shape

Full JSON Schema
{
  "type": "object",
  "oneOf": [
    {
      "type": "object",
      "properties": {
        "text": {
          "type": "string",
          "description": "Text that was analyzed"
        },
        "candidates": {
          "type": "array",
          "description": "Ranked language candidates with confidence scores",
          "items": {
            "type": "object",
            "properties": {
              "language": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Detected language code"
              },
              "confidence": {
                "type": [
                  "number",
                  "null"
                ],
                "description": "Confidence score for this language"
              }
            }
          }
        },
        "found": {
          "type": "boolean",
          "enum": [
            true
          ],
          "description": "Present and true on an answer; a miss is the found:false branch."
        }
      },
      "required": [
        "text",
        "candidates"
      ]
    },
    {
      "type": "object",
      "description": "A miss or an unavailable upstream: found:false with a reason and a hint (the shape check-found-false-schemas.mjs expects).",
      "properties": {
        "found": {
          "type": "boolean",
          "enum": [
            false
          ]
        }
      },
      "required": [
        "found"
      ]
    }
  ]
}

Connect

Add this to your MCP client config — every tool in the catalog, including this one — or use one-click install buttons:

{
  "mcpServers": {
    "pipeworx": {
      "url": "https://pipeworx.io/mcp"
    }
  }
}
Connect to just the libretranslate pack
{
  "mcpServers": {
    "libretranslate": {
      "url": "https://gateway.pipeworx.io/libretranslate/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build November 15, 2026