Skip to main content
Glama

detect_language

Detect language of text using character frequency analysis. Returns: {language, confidence, method}

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
textYes

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observed

TDQS

A4.2/5.0
Behavior3/5

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

No annotations are provided, so the description carries the burden. It discloses the method (character frequency analysis) and return shape ({language, confidence, method}). However, it does not mention potential limitations, error behavior, or supported languages, leaving some behavioral gaps.

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?

Two concise sentences with the purpose front-loaded and return format clearly specified. Every word earns its place with no redundancy.

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 simple tool with one parameter and no output schema, the description covers the purpose and return value adequately. It falls slightly short of full completeness by omitting edge cases or confidence interpretation, but it is sufficient for most agents.

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

Parameters4/5

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

With 0% schema description coverage, the description clarifies that 'text' is the input whose language is detected. Though minimal, this is sufficient for a single obvious parameter, but additional details (e.g., encoding, length constraints) are absent.

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?

The description uses a specific verb and resource ('Detect language of text') and clearly distinguishes from sibling tools like sentiment analysis, keyword extraction, and summarization. It leaves no ambiguity about what the tool does.

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?

The description provides clear context for when to use the tool (when language identification is needed) but does not explicitly mention alternatives or exclusions. Since sibling tools are clearly different, the context is sufficient without explicit when-not guidance.

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.

TDQS

A3.6/5.0
Disambiguation5/5

Each tool addresses a distinct text analysis task: sentiment, language, keywords, duplicates, and summarization. There is no overlap or ambiguity between them.

Naming Consistency4/5

Most tools follow a clear verb_noun pattern (analyze_sentiment, detect_language, etc.). 'health_check' is a minor deviation, but it is still recognizable and does not break the overall consistency.

Tool Count5/5

With 6 tools, the server is well-scoped for a text intelligence service. Each tool provides a meaningful, non-redundant capability without overwhelming the user.

Completeness5/5

The tool set covers the core text analytics needs: sentiment, language, keywords, duplication, and summarization. No obvious missing operations are apparent for the stated purpose.