Skip to main content
Glama

xray_get_folder

Retrieves a folder from the Xray repository hierarchy by project ID and path, returning its name, path, test count, and immediate subfolders.

Instructions

Get a folder in the Xray repository hierarchy by project and path. Returns folder name, path, test count, and immediate subfolders.

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_get_folder"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesFolder path, 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?

No annotations are supplied, so the description carries the full burden; it does disclose the return payload (name, path, test count, immediate subfolders), which is genuinely useful. It omits what happens when the path does not exist (error vs empty), any permission requirements, and how depth/volume of subfolders is handled, leaving meaningful behavioral gaps for a read tool with zero annotation coverage.

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, front-loaded with the action and lookup keys, followed by the return summary. Nothing is redundant or 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 3-parameter read tool with no annotations and no output schema, the description covers the what and the return shape adequately. It is still thin on error behavior and on how the `format` parameter alters the response, which matters because no output schema exists to document the payload.

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 `projectId`, `path`, and the `format` enum are already documented, and the baseline is 3. The description only restates that lookup is keyed on project and path and does not explain the effect of `format` on the returned payload.

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?

"Get a folder in the Xray repository hierarchy by project and path" gives a specific verb plus resource and states the lookup keys, so it is distinguishable from the mutating folder siblings (create/delete/move/rename). It stops short of naming any sibling explicitly, so it does not fully earn a 5.

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?

The description never says when to use this versus the other folder tools, nor does it note the prerequisite that the caller must already know the project ID and folder path. At best it implies a read/lookup role, with no exclusions or alternative routing.

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