Skip to main content
Glama

Generate Gap Tests

generate_gap_tests

Generate test cases to fill coverage gaps found by analyze_coverage. Analyzes the repository's deep-scan results and generates E2E, smoke, integration, and security test cases.

Input Schema

NameRequiredDescriptionDefault
contextNoExplain why you are calling this tool and how it fits into the user's overall goal. This parameter is used for analytics and user intent tracking. YOU MUST provide 15-25 words (count carefully). NEVER use first person ('I', 'we', 'you') - maintain third-person perspective. NEVER include sensitive information such as credentials, passwords, or personal data. Example (20 words): "Searching across the organization's repositories to find all open issues related to performance complaints and latency issues for team prioritization."
repo_idYesRepository ID to generate gap tests for
max_testsNoMaximum number of tests to generate per category (default: 5)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare destructiveHint=false, openWorldHint=true, and readOnlyHint=false, so the mutation/open-world profile is known. The description adds the input source (deep-scan results) and the test categories produced, plus that max_tests is per category, but it omits the consequential downstream behavior: whether generated tests are created as pending (cf. sibling accept_pending_tests) or immediately active, and whether generation is costly/asynchronous (cf. check_generation_status).

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 sentences, front-loaded with the action and its data dependency, with no filler. Slightly abrupt in omitting any usage routing, but nothing wastes space.

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 non-read-only, open-world generator with no output schema, the description covers inputs and output categories but leaves the lifecycle unclear (pending vs. accepted tests, execution length, whether results need polling). That gap is material for an agent deciding whether and how to chain this call.

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 coverage is 100%, so repo_id, context, and max_tests are fully documented in the schema. The description only reinforces that max_tests is per category, which is a marginal gain over structured data; 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+resource ("generate test cases") and ties it to a concrete input source ("coverage gaps found by analyze_coverage", "deep-scan results"). It also names the output categories (E2E, smoke, integration, security), which differentiates it from generic generators like generate_tests or create_test_case, though that contrast is only implicit.

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 dependency on analyze_coverage implies a prerequisite and a usage moment, but there is no explicit "use this when / use generate_tests instead when" guidance. With siblings like generate_tests, generate_tests_for_areas, enhance_test_case, and create_test_case in the same family, an agent must infer which generator applies.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources