Skip to main content
Glama

xray_create_precondition

Create a new Xray precondition issue that defines setup requirements, such as a logged-in user or seeded database, that must be satisfied before tests execute.

Instructions

Create a new Xray precondition issue. Preconditions define setup requirements (e.g. user logged in, database seeded) that must be satisfied before tests can execute.

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": {
      "jira": "<jira>"
    },
    "name": "xray_create_precondition"
  }
}

Input Schema

NameRequiredDescriptionDefault
jiraYesJira fields JSON, e.g. { "fields": { "project": { "key": "PROJ" }, "summary": "My precondition" } }
formatNoResponse format: toon (compact, default), json (full), summary (one-line)toon
definitionNoPrecondition definition/steps text
folderPathNoFolder path for the precondition
testIssueIdsNoIssue IDs of tests to link to this precondition
preconditionTypeNoPrecondition type, e.g. { "name": "Manual" }

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

B3.2/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. 'Create' implies a mutation, but the description says nothing about required permissions, whether the operation is reversible, side effects such as linking tests via testIssueIds, or what the response looks like.

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 with no wasted wording; the action is front-loaded and the explanatory clause follows immediately. Nothing needs trimming.

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?

For a mutation tool with six parameters (including nested objects like jira and preconditionType), no annotations, and no output schema, the description is thin. It never explains test linking, folder placement, response format selection, or failure modes, leaving an agent dependent entirely on the schema.

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 every parameter including jira, format, definition, folderPath, testIssueIds, and preconditionType is already documented in the schema. The description adds no parameter-level 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 states a specific verb and resource ('Create a new Xray precondition issue') and adds a domain definition of what a precondition is (setup requirements like user login or seeded database), which helps an agent understand the object being created. It does not explicitly contrast with siblings, but the resource name is distinct enough to separate it from xray_create_test or xray_create_test_set.

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 second sentence implies the purpose ('must be satisfied before tests can execute'), giving indirect context for when this tool is relevant. However, there is no explicit when-to-use vs alternatives guidance, no prerequisites, and no mention of when to use xray_update_precondition or the linking tool xray_add_tests_to_precondition instead.

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