Skip to main content
Glama

analyze

Inspects repository test quality, auto-detects context, and evaluates functions, tests, scenarios, coverage, mutation, and mocks to identify gaps before planning or generating tests.

Instructions

🔍 Analisa qualidade de testes (orquestrador inteligente). Auto-detecta contexto e executa análise completa: funções, testes, cenários, coverage, mutation, mocks.

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": "analyze"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNoModo: full (tudo), analyze (só análise), plan (análise+plano), scaffold (até templates), run (testes+coverage)full
repoYesCaminho do repositório
productYesNome do produto
skipRunNoPular execução de testes (útil para análise rápida)
skipScaffoldNoPular geração de scaffolds (útil se já existem testes)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

C2.9/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 that the tool auto-detects context and runs a full analysis, but never says that it executes tests, that scaffold mode writes template files to the repository, how long it may take, or what permissions/paths it needs — significant omissions for a multi-mode orchestrator with write potential.

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?

Two short sentences, front-loaded with the purpose and followed by the scope list. The emoji and the parenthetical "orquestrador inteligente" are decorative but cost little; nothing is padded.

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 5-parameter orchestrator with a fully documented schema and no output schema, the definition gives an adequate high-level picture of what is analyzed. It falls short on the side effects of scaffold/run modes and on any expected result shape, which matter given the tool's breadth.

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%: every parameter, including the mode enum and the skipRun/skipScaffold flags, is documented in the schema itself. The description adds no additional meaning about modes or flags beyond that, 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?

States a specific verb and resource ("Analisa qualidade de testes") and enumerates the scope it covers: funções, testes, cenários, coverage, mutation, mocks. It also frames itself as an "orquestrador inteligente" with auto-detection. What it lacks is any contrast with siblings like explain_tests, run_mutation_tests or scaffold, whose territory it overlaps.

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?

There is no explicit guidance on when to pick this tool over explain_tests, run_mutation_tests, scaffold or validate, even though the description admits it spans all of those areas. The only routing signal is the `mode` enum inside the schema, which the description does not reference or explain.

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