Skip to main content
Glama

update_gherkin_test_definition

Updates a Cucumber test's Gherkin scenario definition through GraphQL using Xray credentials, so you can revise test steps and expected behavior from your IDE.

Instructions

Update the Gherkin scenario definition of a Cucumber test via GraphQL (requires Xray credentials).

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": {
      "test_key": "<test_key>",
      "gherkin": "<gherkin>"
    },
    "name": "update_gherkin_test_definition"
  }
}

Input Schema

NameRequiredDescriptionDefault
gherkinYesFull Gherkin scenario text
test_keyYesJira issue key of the test (e.g. "PROJ-123")

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.2

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations provided, the description carries the full behavioral burden. It does disclose two useful facts — the GraphQL mechanism and the Xray credential requirement — but says nothing about whether the existing scenario is fully replaced, whether the change is reversible, or what happens to executions already linked to the test.

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

Conciseness5/5

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

A single sentence with the action and resource front-loaded and the auth prerequisite in parentheses. Nothing is wasted and nothing is buried.

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 two-parameter mutation with no annotations and no output schema, the description covers purpose, mechanism, and auth but leaves the overwrite semantics and result behavior unstated. Adequate to call correctly, but not complete for a destructive-style operation.

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 both parameters are already documented in the input schema, including the example key format and the 'full Gherkin scenario text' nature of the gherkin field. The description adds no meaning beyond that, so the baseline of 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 names a specific verb and resource — updating the Gherkin scenario definition of a Cucumber test — and adds the GraphQL transport. It is clear enough to separate this from the broader update_test sibling, though it never explicitly contrasts with it.

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 phrase 'of a Cucumber test', which suggests this applies to Cucumber-typed tests rather than step-based tests. There is no explicit when-to-use, when-not-to-use, or named alternative such as update_test for non-Gherkin edits.

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