Skip to main content
Glama
rnd-pro
by rnd-pro

ai-tools__test_code

Provide your code and test framework to generate tests automatically. Eliminates manual test writing to improve code reliability.

Instructions

[AI Code Analysis] Generates tests for the given code

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
codeYesCode to test
test_frameworkNoTest framework to usejest

Schema Changelog

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

  1. First observedv1.0.3

TDQS

B3.2/5.0
Behavior2/5

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

With no annotations provided, the description carries full responsibility for disclosing behavior. It only states that tests are generated, but does not clarify whether this modifies files, returns test code, requires specific permissions, or has any side effects.

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?

The description is a single, concise sentence with a relevant category prefix. Every word contributes to the meaning, and there is no redundancy.

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?

While the schema covers parameters, the tool has no output schema and no annotations, so the description should provide more context about the expected result and side effects. It lacks guidance on alternatives and usage scenarios, making it incomplete for an agent deciding how to invoke it.

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%, so the schema already fully documents both 'code' and 'test_framework'. The description adds no parameter-specific meaning, but this is acceptable because the schema handles it.

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 clearly states the tool's action ('Generates tests') and resource ('given code'). This distinguishes it from sibling tools like explain_code, review_code, fix_code, and edit_code, which have different purposes.

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?

The description provides no guidance on when to use this tool versus alternatives. It does not mention scenarios, exclusions, or how it relates to sibling tools like review_code or fix_code.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/rnd-pro/agent-aggregator'

If you have feedback or need assistance with the MCP directory API, please join our Discord server