Skip to main content
Glama

minia2a — hosted x402 API marketplace (HTTP)

x402-ai-tests

x402-ai-tests: Generate unit tests for a code snippet: happy path, edge cases and error cases. Name the language with lang; returns executable test code.

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": {
      "code": "<code>"
    },
    "name": "x402-ai-tests"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeYes
langNo
textNo
functionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / required
      Added value: +[
      +  "code"
      +]
  2. Changed4 schema fields changed
    • removedInput schema / properties / code / description
      Removed value: -"Code to process"
    • removedInput schema / properties / function / description
      Removed value: -"Function to process"
    • removedInput schema / properties / lang / description
      Removed value: -"Lang to process"
    • removedInput schema / properties / text / description
      Removed value: -"Text to process"
  3. First observed

TDQS

B3.1/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It does disclose one behavioral fact that matters — the call returns executable test code — but says nothing about permissions, cost/rate limits, or what happens when `code` is in an unsupported language, leaving a meaningful gap for a tool with no annotation coverage.

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?

Two sentences with no filler, and the capability is front-loaded before the `lang` hint and the return-value note. The only waste is the redundant restatement of the tool name at the start.

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 four-parameter tool with no annotations and no output schema, the definition leaves half the parameters unexplained and gives no indication of default language behavior or failure modes. It is thin relative to the surface area it must cover.

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?

Schema description coverage is 0% across four parameters, and the description only clarifies two of them: `code` (the snippet) and `lang` ("Name the language with lang"). The `text` and `function` parameters are documented neither in the schema nor the description, and their overlap with `code` is genuinely ambiguous for a caller.

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 uses a specific verb and resource ("Generate unit tests for a code snippet") and enumerates the coverage it targets: happy path, edge cases and error cases. That is enough to distinguish it from generic siblings like x402-ai-code-review or x402-ai-mock, though it never names those alternatives explicitly.

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: call this when you have a snippet and want tests. There is no explicit when-to-use, when-not-to-use, or routing to a sibling such as x402-ai-mock or x402-ai-code-explain, so an agent must infer the boundary from the tool name alone.

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.