Skip to main content
Glama

Language detection

language_detect
Read-only

Identify the language of text in 100+ languages, returning an ISO 639-1 code, English name, script, and model-reported confidence.

Instructions

Detect the language of any text (100+ languages): ISO 639-1 code, English name and script, plus the model's self-reported confidence (not a calibrated probability). Costs $0.001 per call.

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": "language_detect"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYesThe text to identify.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations only supply readOnlyHint=true, and the description adds genuinely useful behavior beyond that: the returned fields (ISO 639-1 code, English name, script), an important caveat that confidence is model-self-reported and not a calibrated probability, and a concrete per-call cost of $0.001. It does not mention error behavior for unclassifiable input or any rate limits, so it falls short of full behavioral disclosure.

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?

A single tightly packed sentence: purpose first, then output shape, then the confidence caveat, then cost. Every clause carries information an agent cannot get from the schema or annotations, with no filler.

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?

With no output schema, the description correctly steps in to describe the returned fields and even qualifies the confidence value, which is exactly the right compensation for a simple one-parameter tool. The only gap is the absence of any routing guidance relative to similar tools in the catalog.

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?

The single parameter has 100% schema description coverage with a minLength/maxLength constraint, so the schema already carries the burden and a baseline of 3 applies. The description adds nothing about input semantics (e.g., how very short or mixed-language text is handled) beyond what the schema states.

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

Purpose4/5

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

The description opens with a specific verb+resource ("Detect the language of any text") and bounds the scope at 100+ languages, so the agent knows exactly what the tool does. It does not distinguish itself from a plausible sibling such as classify_text, which is why it stops short of a 5.

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

Usage Guidelines3/5

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

"any text" implies the usage context, and the language count suggests broad coverage, but there is no explicit when-to-use vs. when-not guidance and no alternative tools are named. Usage is inferable rather than stated.

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