Skip to main content
Glama

xray_update_precondition

Update an existing Xray precondition's type or definition in one call. Provide the issue key plus at least one new field to revise test precondition steps or type.

Instructions

Update an existing Xray precondition's type and/or definition. At least one of preconditionType or definition must be provided.

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": {
      "issueId": "<issueId>",
      "data": "<data>"
    },
    "name": "xray_update_precondition"
  }
}

Input Schema

NameRequiredDescriptionDefault
dataYesFields to update on the precondition
formatNoResponse format: toon (compact, default), json (full), summary (one-line)toon
issueIdYesPrecondition issue key, e.g. PROJ-123

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

B3.4/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden for a mutation. Beyond implying the target must already exist and that omitted fields are left unchanged, it says nothing about permissions, whether the update is reversible, or what happens to fields not passed in the nested 'data' object.

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?

Two short sentences, zero filler, with the core action stated first and the constraint second. Nothing is repeated from the schema or title.

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 mutation tool with no annotations, no output schema, and a nested data object, the description covers the minimum: what changes and the field constraint. It leaves open the failure mode for a nonexistent precondition and the response shape, which the agent cannot recover from structured fields here.

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 coverage is 100%, so the default baseline is 3, but the description adds a real constraint not expressed in the schema: the schema only requires issueId and data, while the description states at least one of the nested fields must be present. That is meaningful semantic value beyond the structured field documentation.

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 states a specific verb and resource ('Update an existing Xray precondition') plus the exact fields affected (type and/or definition), which lets an agent separate it from siblings like xray_create_precondition or xray_get_precondition. It stops short of naming related update tools such as xray_update_gherkin_definition, so the boundary with those remains inferential.

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 sentence 'At least one of preconditionType or definition must be provided' is a genuine usage precondition that tells the agent when this call is valid, implying it is a partial-update tool. However, there is no guidance on when to choose this over sibling update/create tools, and no mention of prerequisites such as the precondition already existing.

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

Deploy Server

Other Tools