Skip to main content
Glama
vilaabo

zephyr-scale-mcp

by vilaabo

upload_attachment

Upload a file as an attachment to a Zephyr Scale test case, test run, or test result. Optionally attach to a specific step of a test case or result.

Instructions

Upload a file as an attachment to a Zephyr Scale test case, test run (cycle) or test result — optionally to a single step (POST multipart/form-data to /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. filePath must be an absolute path of a file ON THE MACHINE RUNNING THIS MCP SERVER (the file is read from local disk). Returns the attachment metadata reported by the API, or { uploaded, fileName, size } when the API responds with an empty body.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
targetYesKind of entity the attachment belongs to: test_case, test_run or test_result
fileNameNoFile name to store in Zephyr Scale; defaults to the basename of filePath
filePathYesAbsolute path of the file to upload on the machine running this MCP server
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.
Behavior5/5

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

Discloses that filePath must be an absolute path on the MCP server's local disk and describes the return value format, including a fallback when API returns empty body. No annotations exist, so description carries full burden and handles it well.

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?

Well-structured with clear labeling of sections (Addressing, Pass ONLY...). Each sentence adds value; no redundancy. Concise enough while covering all necessary details.

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

Completeness5/5

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

Given the tool's complexity (7 parameters, 3 targets, file system dependency, optional step addressing, non-standard response), the description is thoroughly complete, leaving no ambiguity for correct invocation.

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?

Schema coverage is 100%, yet description adds crucial context: relationship between target and identifier parameters, key format examples, and constraints like 'no step addressing for runs'. This goes far beyond the schema's property descriptions.

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?

Explicitly states 'Upload a file as an attachment to a Zephyr Scale test case, test run or test result — optionally to a single step'. Clearly distinguishes from sibling tools like download_attachment or delete_attachment.

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

Usage Guidelines5/5

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

Provides detailed guidance on selecting parameters based on target, explains that stepIndex only applies to test_case and test_result, and references other tools for obtaining test result IDs. Includes explicit instruction to 'Pass ONLY the identifier that matches the chosen target'.

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