Skip to main content
Glama

Gerar ou traduzir testes com LLM

generate_tests

Generate test specs in any framework. Automatically translate existing tests from other frameworks using reference code.

Instructions

Gera spec em QUALQUER framework. Aceita referência de outro framework: leia com read_file e passe em referenceCode. Traduz automaticamente (ex: Robot→Playwright, Cypress→WDIO).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
contextYesContexto do projeto (read_project) ou descrição.
requestYesO que testar (ex: 'logout flow', 'teste de login') ou 'traduzir o teste abaixo'.
frameworkNoFramework alvo (detectado do projeto se omitido).
referenceCodeNoCódigo de referência em QUALQUER framework (Cypress, Robot, WDIO, etc). O LLM traduz/adapta para o framework alvo.
referencePathsNoCaminhos de arquivos para ler como referência. O agente lê e usa como padrão.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
okYes
errorNo
specContentNo
suggestedFileNameNo
Behavior2/5

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

With no annotations provided, the description carries the full burden of disclosing behavioral traits. It mentions that the tool translates tests automatically and accepts reference code, but it does not disclose side effects (e.g., whether it writes files, requires API keys, or is read-only). This is a significant gap for a tool without annotations.

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 three sentences long and is front-loaded with the core purpose. Each sentence provides distinct value: the main function, the reference-handling workflow, and translation examples. No words are wasted.

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 the rich schema (100% parameter coverage) and presence of an output schema, the description is quite complete. It explains the key generation and translation behavior and shows how to use referenceCode with read_file. It lacks a brief note on when to prefer this over write_test or create_test_template, but the core usage is clear.

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?

The schema already describes all parameters at 100% coverage, so the baseline is 3. The description adds value by explicitly instructing how to populate referenceCode (read with read_file and pass) and clarifies the translation use case, which goes beyond the schema's descriptions.

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 function: 'Gera spec em QUALQUER framework' and 'Traduz automaticamente', with explicit examples (Robot→Playwright, Cypress→WDIO). It distinguishes itself from siblings like write_test by emphasizing framework-agnostic generation and translation.

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?

Provides a concrete usage pattern: 'Aceita referência de outro framework: leia com read_file e passe em referenceCode', which tells the agent to read a file with a sibling tool and pass its content. However, it does not explicitly state when to avoid this tool or compare it to alternatives like write_test or create_test_template.

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

Install Server

Other Tools

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/Wesley-Gomes93/qa-lab-agent-mcp'

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