Skip to main content
Glama

review_test_code

Analyzes test code and returns a structured analysis covering design, anti-patterns, isolation, assertion quality, mocks, performance, and coverage gaps.

Instructions

Revisa código de teste e retorna framework de análise com categorias: design, anti-patterns críticos, isolamento, qualidade de asserções, mocks, performance e cobertura de gaps.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
codeYesCódigo de teste para revisão.
contextNoContexto: o que o código testa, padrões esperados.
languageNoLinguagem (ex.: 'TypeScript', 'Python', 'Java').
frameworkNoFramework (ex.: 'Jest', 'Pytest', 'JUnit 5', 'Playwright').

Schema Changelog

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

  1. First observedv2.0.0

TDQS

A4.1/5.0
Behavior3/5

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

No annotations are provided, so the description bears the full burden. It mentions the output is a 'framework de análise' (analysis framework) with specific categories, which is helpful. But it doesn't disclose if the tool modifies any state, requires authentication, has rate limits, or what happens on failure (e.g., empty code input). For a read-only review tool without annotations, this is adequate but not fully transparent.

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?

The description is a single, front-loaded sentence that efficiently conveys purpose and output. Every part (verb, resource, review categories) earns its place. No fluff, but it could be slightly restructured for readability (the list of categories is dense) – hence not a 5.

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

Completeness4/5

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

Given this is a review tool with no output schema, the description adequately explains the return value by listing analysis categories. The 4 parameters are well-documented in the schema, so no gaps there. However, for a tool that likely has complex behavior (e.g., language-specific heuristics), more detail on how language/framework affects the analysis would improve completeness.

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

Parameters4/5

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

Schema coverage is 100% with descriptions for all four parameters, so the baseline is 3. The description adds meaning by explaining that the tool returns a structured analysis, which hints at how the 'context' and 'language' parameters guide the review. However, it doesn't elaborate on format or defaults, so it's a minor lift above baseline.

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?

Description starts with a specific verb ('Revisa' – reviews) and resource ('código de teste' – test code), immediately stating what the tool does. It further clarifies the output by listing detailed analysis categories (design, anti-patterns, isolation, etc.), which clearly distinguishes it from siblings like 'generate_test_strategy' or 'troubleshoot_flaky_test'.

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

Usage Guidelines4/5

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

The description clearly implies this tool is for reviewing test code, which differentiates it from siblings that create (generate_test_strategy, create_gherkin_scenarios) or troubleshoot (troubleshoot_flaky_test) other aspects. However, it does not explicitly state when NOT to use it (e.g., for production code) or provide prerequisites.

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/qamichaelmaia/qa-testing-mcp'

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