Skip to main content
Glama

get_test_record_attachment_content

Read-only

Fetch a test record's attachment content from Polarion, rendering images and SVG markup for immediate viewing.

Instructions

Fetch a test record attachment's content for viewing.

PNG, JPEG, GIF, and WebP return as a viewable image; SVG returns its source markup as text. Any other extension is rejected before any request. Use get_document_attachment_content or get_work_item_attachment_content for the other domains. Use list_test_record_attachments to discover attachment ids, file names, and sizes.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
iterationNoRecord iteration number (0-based).
project_idYesPolarion project ID.
test_run_idYesTest run ID (e.g. 'TR-2026-01').
test_case_idYesFull test case work item ID 'project/WI-id' as returned by list_test_records.
attachment_idYesAttachment id ({testCaseId}_{fileName} token) from list_test_record_attachments.
Behavior5/5

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

Annotations declare readOnlyHint=true, and the description adds meaningful behavioral details beyond that: PNG/JPEG/GIF/WebP return as viewable images, SVG returns source markup, and other extensions are rejected before any request. This gives the agent clear expectations for output format and failure modes.

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?

The description is four sentences long, front-loaded with the core purpose, and every sentence provides distinct value: functionality, output format, exclusions, and cross-tool alternatives. No redundancy or filler.

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?

Despite having no output schema and only readOnlyHint annotation, the description covers purpose, return types, rejection behavior, domain alternatives, and discovery methods. For a read-only content-fetching tool, this is comprehensive and leaves no critical ambiguity.

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

Parameters4/5

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

Schema description coverage is 100%, so the baseline is 3. The description adds practical parameter acquisition guidance by pointing to list_test_record_attachments to discover attachment ids, file names, and sizes. This goes slightly beyond the schema's static property descriptions and helps the agent populate the required fields.

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 opens with a specific verb+resource: 'Fetch a test record attachment's content for viewing.' It immediately scopes the tool to test-record attachments and differentiates from sibling tools by explicitly naming alternatives for document and work item attachments.

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 explicit usage guidance: 'Use get_document_attachment_content or get_work_item_attachment_content for the other domains' and 'Use list_test_record_attachments to discover attachment ids, file names, and sizes.' Also clarifies supported file types and rejection behavior, helping the agent decide when to invoke this tool.

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/devemberx/mcp-server-polarion'

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