Skip to main content
Glama

Por que falhou? Explicação para juniores

por_que_falhou

Translate stack traces into plain language, explaining what happened, why it failed, and how to fix it. Reads the project and failing test to offer precise correction suggestions.

Instructions

Traduz stack trace em explicação humana. Recebe output do terminal/log, lê o projeto e o teste (se path dado), e retorna: O que aconteceu, Por que falhou, O que fazer, Sugestão de correção, Conceito. Escalável e procedural.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
errorOutputNoOutput do terminal quando o teste falhou. Se vazio, lê automaticamente de .qa-lab-last-failure.log (capturado pelo run_tests). Cole aqui ou deixe vazio para usar última falha.
testFilePathNoCaminho do arquivo de teste que falhou (ex: specs/login.spec.js). Se informado, o agente lê o código e dá sugestão mais precisa.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
okYes
errorNo
conceitoNo
frameworkNo
formattedTextNo
oQueAconteceuNo
oQueFazerAgoraNo
sugestaoCorrecaoNo
porQueProvavelmenteFalhouNo
Behavior3/5

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

With no annotations, the description carries the transparency burden and does disclose that the tool reads the project/test and returns a structured explanation. However, it does not mention limitations, potential side effects, or requirements beyond input, and the phrase 'Escalável e procedural' is vague and does not add concrete behavioral detail.

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 compact, front-loaded with the core action, and efficiently lists the output categories. The final phrase 'Escalável e procedural' is somewhat vague and arguably unnecessary, but the overall structure remains tight and informative.

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

Completeness3/5

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

The description covers the main workflow, inputs, and output sections, and the presence of an output schema reduces the need to describe return formats. However, it lacks positioning relative to sibling tools and does not discuss failure scenarios or limitations, which would be valuable given the broad QA tool ecosystem.

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?

The schema already provides 100% coverage with detailed parameter descriptions, including the fallback to .qa-lab-last-failure.log and the behavior when testFilePath is supplied. The description adds only minimal reinforcement of these points and does not introduce new semantic value beyond the schema.

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+resource construction ('Traduz stack trace em explicação humana') and clearly lists the structured output sections (O que aconteceu, Por que falhou, etc.), making the purpose evident. However, it does not explicitly compare against sibling tools like analyze_failures or suggest_fix, so differentiation is not fully spelled out.

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?

The description implies the tool should be used when a stack trace or terminal output needs a human explanation, especially with optional test file context. The parameter descriptions add conditional behavior (auto-reading from log, reading test file), but there is no explicit 'use this instead of X' guidance or exclusion of alternatives.

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