translate_detect_language

Pack: translate · 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/translate_detect_language for the schema, then POST the same URL with its arguments for the data.

Detect the language of a text string. Returns an array of detected languages with confidence scores.

Parameters

NameTypeRequiredDescription
textstringyesThe text whose language should be detected

Example call

Arguments

{
  "text": "Hola, ¿cómo estás?"
}

curl

curl -X POST https://gateway.pipeworx.io/translate/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"translate_detect_language","arguments":{"text":"Hola, ¿cómo estás?"}}}'

TypeScript (@pipeworx/sdk)

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

const result = await pipeworx.call('translate_detect_language', {
  "text": "Hola, ¿cómo estás?"
});

More examples

{
  "text": "The quick brown fox jumps over the lazy dog"
}

Response shape

Full JSON Schema
{
  "type": "object",
  "oneOf": [
    {
      "type": "object",
      "properties": {
        "text": {
          "type": "string",
          "description": "The input text that was analyzed"
        },
        "detections": {
          "type": "array",
          "description": "Array of detected languages with confidence scores",
          "items": {
            "type": "object",
            "properties": {
              "language": {
                "type": "string",
                "description": "Detected language code"
              },
              "confidence": {
                "type": "number",
                "description": "Confidence score for the detection"
              }
            },
            "required": [
              "language",
              "confidence"
            ]
          }
        },
        "found": {
          "type": "boolean",
          "enum": [
            true
          ],
          "description": "Present and true on an answer; a miss is the found:false branch."
        }
      },
      "required": [
        "text",
        "detections"
      ]
    },
    {
      "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 translate pack
{
  "mcpServers": {
    "translate": {
      "url": "https://gateway.pipeworx.io/translate/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build November 15, 2026