Skip to main content
Glama

Faceabot Translate

Detect the language of a text

detect_language
Read-onlyIdempotent

Tells which language a text is written in: two-letter ISO 639-1 code and the language name in English. Nothing is translated. Use when: you need to know the language of a message, a review or a document before answering or translating it. Example: {"text":"Où est la gare ?"}

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "text": "<text>"
    },
    "name": "detect_language"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYesThe text whose language you want to know (the first 400 characters are read)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnly, idempotent, non-destructive, and closed-world, so the safety profile is covered structurally. The description adds genuine context beyond that: what fields come back and the guarantee that no translation occurs. It is silent on behavior for ambiguous, mixed-language, or too-short input, and on the truncation limit's effect (that detail lives only in the schema).

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Four short, front-loaded elements: what it returns, what it does not do, when to use it, and an example. No filler sentences and no repetition of annotation-derived facts.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a one-parameter, non-destructive tool with no output schema, the description states the return shape and the no-translation guarantee, which is most of what an agent needs. The remaining gap is edge-case behavior for undetermined or multilingual input, which is minor at this complexity.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

There is a single parameter with 100% schema description coverage, and the schema itself explains the 400-character read limit. The description's inline example echoes the schema example rather than adding new semantics, so baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb (detect/tell) and resource (language of a text), plus the exact return shape: two-letter ISO 639-1 code and English language name. The clause "Nothing is translated" cleanly separates it from the translate_text sibling without needing its schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

An explicit "Use when" clause names concrete scenarios (message, review, document) and the ordering relative to answering or translating. It stops short of naming translate_text as the alternative action once the language is known, but the implied workflow is clear.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources