Skip to main content
Glama

xray_delete_folder

Delete a folder from the Xray repository hierarchy by project ID and path. Use it to remove obsolete folders, but note that tests within the folder may be affected.

Instructions

WARNING: Deleting a folder may affect tests contained within it. Delete a folder from the Xray repository hierarchy by project and path.

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": {
      "projectId": "<projectId>",
      "path": "<path>"
    },
    "name": "xray_delete_folder"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesFolder path to delete, e.g. '/Regression/Login'
formatNoResponse format: toon (compact, default), json (full), summary (one-line)toon
projectIdYesJira project ID, e.g. '10000'

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

B3.3/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose the one critical side effect: deleting a folder may affect tests inside it. However, 'may affect' is ambiguous — it does not say whether contained tests are deleted, orphaned, or moved, whether the call is reversible, or what permissions are required. That is meaningful but incomplete disclosure for a destructive tool.

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 tightly written sentences, with the risk warning front-loaded ahead of the mechanical description. Every clause carries information and nothing is padded.

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 destructive, annotation-free operation with no output schema, the definition covers identity and one risk but omits reversibility, permission requirements, effect on contained tests, and the return value. Adequate to attempt the call, insufficient to predict its consequences.

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%, with projectId and path documented in-schema including an example path, and format enumerated, so the baseline is 3. The description restates 'by project and path' but adds no syntax, normalization, or behavior detail beyond what the schema already provides.

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 ('Delete') and resource ('folder') plus the addressing scheme ('by project and path') and the domain ('Xray repository hierarchy'). This separates it cleanly from xray_create_folder, xray_rename_folder, xray_move_folder, and the add/remove tests-to-folder siblings, which operate on folder membership rather than the folder itself.

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?

There is no explicit when-to-use or when-not-to-use guidance and no named alternative. The destructive warning hints that caution is warranted, but an agent gets no instruction on when to delete a folder rather than deleting or moving its tests, or whether empty-folder preconditions apply.

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