Skip to main content
Glama

Generate Tests

generate_tests

Generate Playwright tests for a specific feature or component

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 tests for
selectorsNoSpecific selectors to target
test_typeNoType of tests to generatefunctional
feature_descriptionYesDescription of the feature to test

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

C2.9/5.0
Behavior2/5

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

Annotations already flag it as non-readOnly, non-destructive, and open-world, and the description adds nothing beyond that. For a generation tool whose sibling check_generation_status exists, failing to say whether the call is asynchronous, long-running, or how results are retrieved is a real gap.

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?

A single short sentence with no waste and the resource front-loaded. It is terse, though, bordering on under-specified rather than maximally efficient.

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

Completeness2/5

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

With 5 parameters, an open-world generation action, and no output schema, the description should explain the result lifecycle (async generation and status checking) and what the generated artifacts look like. None of that is present, leaving the agent without the information needed to follow through after the 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 every parameter is documented in the schema, including the enum for test_type and the strict context parameter rules. The description adds no extra meaning about how feature_description, selectors, or test_type interact, 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: generate Playwright tests for a feature or component. It is clear what the tool produces, but it does not distinguish itself from close siblings like generate_gap_tests, generate_tests_for_areas, or generate_code_for_test_case.

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?

No guidance on when to choose this over generate_tests_for_areas, generate_gap_tests, or generate_code_for_test_case, and no mention of prerequisites such as an imported repository or an existing feature spec. The agent must infer the selection criteria from sibling names alone.

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