detect_language

Pack: translate · Endpoint: https://gateway.pipeworx.io/translate/mcp

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":"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('detect_language', {
  "text": "Hola, ¿cómo estás?"
});

More examples

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

Response shape

Always returns: text, detections

FieldTypeDescription
textstringThe input text that was analyzed
detectionsarrayArray of detected languages with confidence scores
Full JSON Schema
{
  "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"
        ]
      }
    }
  },
  "required": [
    "text",
    "detections"
  ]
}

Connect

Add this to your MCP client config, or use one-click install buttons:

{
  "mcpServers": {
    "translate": {
      "url": "https://gateway.pipeworx.io/translate/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build May 9, 2026