Skip to main content
Glama

IA-QA — 17 QA judges for AI agents

generate_test_cases

Read-only

Generate a set of test cases (valid, edge, invalid, pairwise) for a given feature description. Declared constraints drive the boundaries: a length or numeric bound ("[8-64]", "min 8 chars", "at least 8 characters" — read from inputs, and from the feature prose when a sentence names exactly one field) yields the last accepted value AND the first rejected one; a composition rule ("1 uppercase", "1 digit", "1 special character") yields one case that breaks only it. With no inputs, the fields the feature names next to a constraint are used, and inputsSource and warnings say so (or that none could be read); a format (email/url/uuid, from the type, the field name or the wording) yields malformed-value cases. A bound nobody declared is labelled as this tool's assumption, not as expected behaviour. gherkinFormat renders every case (cap 200, stated in the output) and gherkinScenarioCount lets you check it against totalCases. With your own model (api_key + model, BYOK; the text goes to that provider): ticket → a test suite from a ticket's text (Gherkin, E2E steps, API tests, test data, ambiguities to clarify; a thin ticket gets questions, not invented cases); gherkin + warnings → repairs Gherkin scenarios with syntax errors (missing Given/When/Then…), fixing only the flagged issues.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "inputs": "email: string\npassword: string, min 8 chars",
      "feature": "Signup form"
    },
    "name": "generate_test_cases"
  }
}

Input Schema

NameRequiredDescriptionDefault
modelNoe.g. "gpt-4o-mini", "claude-haiku-4-5-20251001", "openai/gpt-oss-20b".
inputsNoOptional: list of input parameters (one per line, e.g. "email: string [required]", "password: string [required, min 8 chars]", "age: number [18-99]")
ticketNo{key, summary, description, …}: the ticket's text.
api_keyNoYour provider key, used for this call only.
featureNoFeature or function to test: inputs, expected behaviour, context. A constraint stated here ("password must be at least 8 characters") applies when its sentence names exactly one field.
gherkinNoGherkin to fix.
warningsNoWith gherkin: the warnings to fix.
max_tokensNo
confluence_pagesNoWith ticket: documentation pages.

Output Schema

NameRequiredDescriptionDefault
featureNo
test_casesNo
parsedInputsNo
gherkinFormatNo
gherkinScenarioCountNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed9 schema fields changed
    • changedInput schema / examples
      Previous value: -[
      -  {
      -    "feature": "Login form with email and password"
      -  }
      -]New value: +[
      +  {
      +    "feature": "Signup form",
      +    "inputs": "email: string\npassword: string, min 8 chars"
      +  }
      +]
    • addedInput schema / properties / api_key
      Added value: +{
      +  "description": "Your provider key, used for this call only.",
      +  "type": "string"
      +}
    • addedInput schema / properties / confluence_pages
      Added value: +{
      +  "description": "With ticket: documentation pages.",
      +  "items": {
      +    "additionalProperties": true,
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • addedInput schema / properties / gherkin
      Added value: +{
      +  "description": "Gherkin to fix.",
      +  "type": "string"
      +}
    • addedInput schema / properties / max_tokens
      Added value: +{
      +  "type": "integer"
      +}
    • addedInput schema / properties / model
      Added value: +{
      +  "description": "e.g. \"gpt-4o-mini\", \"claude-haiku-4-5-20251001\", \"openai/gpt-oss-20b\".",
      +  "type": "string"
      +}
    • addedInput schema / properties / ticket
      Added value: +{
      +  "additionalProperties": true,
      +  "description": "{key, summary, description, …}: the ticket's text.",
      +  "type": "object"
      +}
    • addedInput schema / properties / warnings
      Added value: +{
      +  "description": "With gherkin: the warnings to fix.",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • removedInput schema / required
      Removed value: -[
      -  "feature"
      -]
  2. Changed1 schema field changed
    • changedInput schema / properties / feature / description
      Previous value: -"Feature or function to test. Be specific: describe inputs, expected behaviour, context. Constraints stated here (\"password must be at least 8 characters\") are used when the sentence names exactly one field."New value: +"Feature or function to test: inputs, expected behaviour, context. A constraint stated here (\"password must be at least 8 characters\") applies when its sentence names exactly one field."
  3. Changed1 schema field changed
    • addedInput schema / examples
      Added value: +[
      +  {
      +    "feature": "Login form with email and password"
      +  }
      +]
  4. Changed5 schema fields changed
    • changedInput schema / properties / feature / description
      Previous value: -"Feature or function to test. Be specific: describe inputs, expected behaviour, context."New value: +"Feature or function to test. Be specific: describe inputs, expected behaviour, context. Constraints stated here (\"password must be at least 8 characters\") are used when the sentence names exactly one field."
    • changedInput schema / properties / inputs / description
      Previous value: -"Optional: list of input parameters (one per line, e.g. \"email: string [required]\")"New value: +"Optional: list of input parameters (one per line, e.g. \"email: string [required]\", \"password: string [required, min 8 chars]\", \"age: number [18-99]\")"
    • addedOutput schema / properties / gherkinFormat
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / gherkinScenarioCount
      Added value: +{
      +  "type": "number"
      +}
    • addedOutput schema / properties / parsedInputs
      Added value: +{
      +  "items": {
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
  5. Changed1 schema field changed
    • addedOutput schema / properties
      Added value: +{
      +  "feature": {
      +    "type": "string"
      +  },
      +  "test_cases": {
      +    "items": {
      +      "type": "object"
      +    },
      +    "type": "array"
      +  }
      +}
  6. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "type": "object"
      +}
  7. First observed

TDQS

A4.1/5.0
Behavior5/5

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

With annotations already declaring readOnlyHint=true, it goes well beyond them: it discloses the 200-case render cap and that the cap is stated in the output, that undeclared bounds are labelled as tool assumptions rather than expected behavior, that inputsSource/warnings report where fields came from, and that BYOK text is sent to the named third-party provider. It also constrains the repair mode to fixing "only the flagged issues," which is exactly the kind of behavioral limit an agent needs.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Nearly every clause conveys substantive behavior, so little is filler, but the text is one dense run-on block with nested parentheses and the alternate modes (ticket, gherkin) appended at the very end. Front-loading the mode selector and breaking the constraint rules into separate sentences would make it far more scannable for an agent deciding whether to call it.

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

Completeness4/5

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

For a 9-parameter, zero-required tool with nested objects and an output schema (so return values need not be explained), the description covers the main branch logic, the assumption-labeling policy, the render cap, and both alternate modes. The one gap is that the ticket mode's interaction with confluence_pages and max_tokens is left implicit.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is high (89%), so the schema carries the baseline burden, but the description adds real semantics: the accepted constraint phrasings ("[8-64]", "min 8 chars", "at least 8 characters"), the rule that a prose constraint applies only when its sentence names exactly one field, and how format cases are derived from type, field name, or wording. It also explains the pairing of gherkinFormat with gherkinScenarioCount and totalCases.

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?

It opens with a concrete verb and resource: "Generate a set of test cases (valid, edge, invalid, pairwise) for a given feature description," and later distinguishes two secondary modes (ticket-based suite generation and Gherkin repair). An agent can tell what it produces, though the multi-mode nature (feature vs ticket vs gherkin) is buried mid-paragraph rather than surfaced up front, and no sibling tool is named to sharpen the boundary.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Mode-selection conditions are stated explicitly: "With no inputs, the fields the feature names next to a constraint are used," and "With your own model (api_key + model, BYOK): ticket → a test suite from a ticket's text," plus "gherkin + warnings → repairs Gherkin scenarios." This tells the agent which inputs activate which behavior. What is missing is any guidance about when to prefer this tool over siblings like test_skill or run_eval_contract.

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.