Skip to main content
Glama

x402-ai-code-explain

AI Code Explain: Explain code in plain English with AI.

Input Schema

NameRequiredDescriptionDefault
codeNo
langNo
textNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • removedInput schema / properties / code / description
      Removed value: -"Code to process"
    • removedInput schema / properties / lang / description
      Removed value: -"Lang to process"
    • removedInput schema / properties / text / description
      Removed value: -"Text to process"
  2. Changed1 schema field changed
    • addedInput schema / properties / text
      Added value: +{
      +  "description": "Text to process",
      +  "type": "string"
      +}
  3. First observed

TDQS

C2.7/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full burden. It says nothing about behavior beyond the one-line purpose: no input-size or truncation limits, no indication of what language coverage means, no note that output is LLM-generated prose, and no guidance on how the three inputs interact.

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?

A single front-loaded sentence with no filler. It is efficient, though its brevity is partly the cause of the documentation gaps rather than a virtue in itself.

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

Completeness2/5

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

For a three-parameter AI tool with no annotations, no output schema, and zero schema coverage, the description is too thin. It does not tell an agent how to populate the ambiguous inputs or what to expect back, so a caller would likely guess at the schema.

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

Parameters2/5

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

Three parameters with 0% schema description coverage and none required, so the description must compensate and does not. It is especially unhelpful for the ambiguous pair 'code' and 'text' (apparently redundant), and says nothing about what 'lang' expects.

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?

States a specific verb and resource: 'Explain code in plain English with AI.' An agent can tell it explains code. However it offers no differentiation from close siblings like x402-ai-code-review, x402-code-diagnose, or x402-ai-error-explain, which an agent must distinguish by name alone.

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

Usage Guidelines2/5

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

No when-to-use guidance, no prerequisites, and no mention of the sibling tools it overlaps with (code review, diagnose, error explain). The agent is left to infer that this tool produces a plain-English explanation rather than a review or diagnosis.

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