Skip to main content
Glama

x402-ai-tests

x402-ai-tests: Unit tests from code.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
codeNoCode to process
langNoLang to process
textNoText to process
functionNoFunction to process

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

C2/5.0
Behavior1/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 of behavioral disclosure, and it only states the output concept. It does not reveal whether code is executed, what output format is returned, whether external calls are made, how failures surface, or any side effects. This is far below what an agent needs for safe and accurate invocation.

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

Conciseness2/5

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

The description is short and front-loaded, but brevity here reflects under-specification rather than effective conciseness. A single noun phrase provides no actionable structure or guidance for a tool with four parameters. Every word is memorable, but the definition as a whole is not appropriately sized for its complexity.

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

Completeness1/5

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

This is a four-parameter tool with no annotations and no output schema, yet the description offers almost no operational context. It does not explain what a generated test looks like, how `lang`, `text`, and `function` affect behavior, or what happens when no parameters are provided. An agent cannot reliably invoke this tool correctly based on the provided definition.

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?

Although schema description coverage is reported as 100%, the parameter descriptions are generic boilerplate like 'Code to process' and 'Lang to process' that add little meaning beyond the parameter names. The tool description only implies that `code` is the main input and does not clarify the roles of `lang`, `text`, or `function`. An agent cannot determine how the optional parameters interact or what values are valid.

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

Purpose3/5

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

The description 'Unit tests from code' conveys that the tool turns source code into unit tests, so it is more than a pure tautology. However, it lacks an explicit action verb and does not differentiate itself from many other AI code-analysis siblings like x402-ai-code-review or x402-code-diagnose. The scope of 'unit tests' is also vague: it is unclear whether it generates test cases, test scaffolds, or assertions.

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?

There is no guidance on when to use this tool versus alternatives, nor any prerequisites or exclusions. Given the enormous sibling list, an agent has no basis for selecting this tool over related code-analysis or AI-generation tools. The all-optional parameters do not clarify which combinations are expected for different use cases.

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