Skip to main content
Glama

MoneyTools x402 agent toolkit

Language detection

language_detect
Read-onlyIdempotent

Detect the language of a text (82 languages, ISO 639-3 + BCP 47), including Traditional vs Simplified Chinese. Free: 10 calls/day; then $0.001/call via x402 (MCP params._meta["x402/payment"] or HTTP) or X-API-Key credits. [served by tools.moneytools.dev]

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
textYestext (20+ chars best)

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint and destructiveHint=false, so the safety profile is covered. The description adds genuinely non-obvious behavior: the 82-language coverage, the output code systems, Chinese script disambiguation, and — importantly — the cost model (10 free calls/day, then $0.001/call) plus the two payment mechanisms. That pricing/rate-limit disclosure is exactly the kind of context annotations cannot carry.

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

Conciseness4/5

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

Front-loaded with the purpose and coverage in the first clause, with cost/payment details trailing. It is dense but nearly every clause carries information; the '[served by tools.moneytools.dev]' tag and the parenthetical payment plumbing are the only slightly noisy elements.

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

Completeness5/5

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

For a one-parameter detection utility with an output schema and full annotation coverage, this is complete: purpose, supported language count, output code standards, script-level nuance, and the cost/auth model are all present. Nothing an agent needs in order to call it correctly or anticipate billing is missing.

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?

Schema description coverage is 100% with a single required 'text' parameter that already carries an example and a length hint, so the schema does the heavy lifting. The description adds only indirect meaning (that the text will be mapped to one of 82 languages) and gives no format/length guidance of its own. Baseline 3 is appropriate.

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 and resource ('Detect the language of a text') and immediately bounds the scope with concrete facts: 82 languages, ISO 639-3 + BCP 47 output, and Traditional vs Simplified Chinese disambiguation. No sibling in the catalog performs language detection, so no sibling differentiation is required, and an agent can tell exactly what this does.

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?

Usage is implied by the purpose statement — call it with text to identify a language — but there are no explicit when-to-use/when-not conditions or named alternatives. The only routing-style guidance is about payment paths (x402 vs X-API-Key), which is invocation mechanics rather than selection 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.

Resources