Skip to main content
Glama
vilaabo

zephyr-scale-mcp

by vilaabo

list_attachments

Read-only

List attachments from a Zephyr Scale test case, test run, or test result. Optionally filter by step index for test cases and test results.

Instructions

List the attachments of a Zephyr Scale test case, test run (cycle) or test result — optionally of a single step (GET /testcase/{key}[/step/{i}]/attachments, /testrun/{key}/attachments or /testresult/{id}[/step/{i}]/attachments). Addressing: target 'test_case' requires testCaseKey (stepIndex optional to address a specific step); target 'test_run' requires testRunKey (no step addressing — the API has no per-step endpoint for runs); target 'test_result' requires testResultId (stepIndex optional). Pass ONLY the identifier that matches the chosen target. Returns the attachment list as reported by the API; the numeric ids can be passed to delete_attachment.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
targetYesKind of entity the attachment belongs to: test_case, test_run or test_result
stepIndexNo0-based step index to address a single step instead of the whole entity (targets 'test_case' and 'test_result' only)
testRunKeyNoTest run (cycle) key, e.g. PROJ-R123 — required when target is 'test_run'
testCaseKeyNoTest case key, e.g. PROJ-T123 — required when target is 'test_case'
testResultIdNoNumeric test result id — required when target is 'test_result'. Result ids are returned by create_test_result / update_last_test_result / get_test_run_results.
Behavior4/5

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

The description discloses that the tool returns a list of attachments as reported by the API, and that the numeric ids are for delete. Annotations confirm readOnlyHint=true, so no contradiction. The description adds value by explaining limitations (e.g., no per-step endpoint for test runs) which go beyond the annotation.

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

Conciseness4/5

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

The description is detailed but well-structured, starting with the core purpose and then expanding on addressing rules. Every sentence adds value, though some minor redundancy could be trimmed. It avoids unnecessary fluff and is front-loaded with the most important information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the complexity of three target types with optional step addressing and no output schema, the description covers the mandatory identifier handling and the output's link to delete_attachment. It does not mention pagination or response structure, but these are less critical for a listing tool. The presence of readOnlyHint annotations reduces the need for further behavioral disclosure.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Although the input schema covers all parameters with descriptions, the description adds crucial context about parameter interdependencies: which identifier is required for each target, and that stepIndex is only valid for test_case and test_result. This goes well beyond the schema and is essential for correct usage.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states that the tool lists attachments of a Zephyr Scale test case, test run, or test result, optionally for a specific step. It distinguishes between three target types and explains the addressing scheme, making the purpose very specific and unambiguous.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides explicit instructions on which identifier to pass for each target, and notes that step addressing is only available for test_case and test_result. It also mentions that the returned ids can be used with delete_attachment, guiding subsequent actions. However, it does not explicitly compare to sibling tools like download_attachment or upload_attachment, which would help the agent decide when to use this tool over others.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/vilaabo/zephyr-scale-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server