Skip to main content
Glama

scaffold

Generates unit, integration, and e2e test structures with templates for happy paths, error handling, edge cases, and side effects while auto-detecting critical functions.

Instructions

🏗️ Gera estrutura de testes (unit/integration/e2e). Templates inteligentes com happy path, error handling, edge cases e side effects. Detecta funções críticas automaticamente.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "repo": "<repo>",
      "product": "<product>"
    },
    "name": "scaffold"
  }
}

Input Schema

NameRequiredDescriptionDefault
repoYesCaminho do repositĂłrio
typeNoTipo: unit|integration|e2eunit
productYesNome do produto
functionNoNome da função específica (opcional)
scenarioNoCenário: happy|error|edge|side (opcional)
frameworkNoFramework: jest|vitest|mochavitest
autoDetectNoAuto-detectar arquivos

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

B3.2/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden. It discloses what content the templates contain (happy path, error handling, edge cases, side effects) and that critical functions are auto-detected, but it never states whether files are written to disk, whether existing files are overwritten, or what permissions are required — significant gaps for a scaffolding tool.

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?

Three compact sentences, front-loaded with the core purpose and followed by template and detection details. The leading emoji and some redundancy are minor, but nothing is wasteful.

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?

For a 7-parameter generation tool with no annotations and no output schema, the description explains what is generated but omits key context: where output lands, whether it is idempotent or destructive, and what the result looks like. Adequate but with clear gaps.

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 documents all seven parameters. The description echoes the enum values (unit/integration/e2e, happy/error/edge/side) but adds no syntax or format detail beyond what the schema provides, so the baseline 3 applies.

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 states a specific verb and resource: 'Gera estrutura de testes' (generates test structure), scoped to unit/integration/e2e. It is clear what the tool produces, but it does not distinguish itself from siblings like analyze, explain_tests, or validate, which an agent could plausibly confuse with test scaffolding.

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?

Usage is only implied by the verb 'Gera' and the mention of automatic detection of critical functions. There is no explicit when-to-use, when-not-to-use, or comparison to sibling tools such as validate or run_mutation_tests, so the agent must infer the selection condition.

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