Skip to main content
Glama

Read an attached file

get_attachment_file
Read-onlyIdempotent

Read the CONTENT of a file attached to an issue, in ONE call. No API key needed from you — this is a normal tool call, so never go looking for a credential or try to curl the download URL yourself. An image comes back as an image you can see; text (logs, CSV, PEM, patches, config) comes back as text you can read; anything else as base64 you can write to a file yourself. Size limit 131072 bytes (128KB), or 2MB for an image, because on this connection the bytes have to travel through your context. For anything bigger, run your MCP through retasc mcp-proxy and call this tool again — the proxy downloads the file to disk and hands you the path, at any size. Check bytes on list_attachments or get_attachment first if you want to know before you ask. A link attachment (save_attachment) has no bytes to return; fetch its URL yourself.

Input Schema

NameRequiredDescriptionDefault
attachmentYesAttachment id.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added
  2. Removed
  3. Added

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already cover the read-only/idempotent profile, but the description adds substantial context beyond them: no credential is needed (pre-empting a common agent failure mode), the exact size caps and why they exist (bytes travel through context), and per-type return shapes (image, text, base64). This is exactly the operational detail annotations cannot convey.

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?

Front-loaded with purpose and the no-credential warning, and every sentence carries a distinct fact (return types, size limits, proxy alternative, link attachments). It is on the long side — the credential warning and the size rationale could be tightened — but nothing is 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?

No output schema exists, and the description compensates by describing all three possible return shapes and their caps. With one required parameter, read-only annotations, and the sibling routing spelled out, an agent has everything needed to call this correctly or know when not to.

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 coverage is 100% and the single parameter is documented as 'Attachment id.', so the schema already does the work. The description adds only implicit context — that the id refers to an issue attachment obtainable via list_attachments — without adding syntax or format detail. Baseline 3 is appropriate.

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?

States a specific verb and resource — 'Read the CONTENT of a file attached to an issue' — and immediately distinguishes itself from metadata siblings by emphasizing CONTENT and 'ONE call'. An agent can tell it apart from get_attachment and save_attachment without opening any schema.

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?

Gives explicit routing: check `bytes` on list_attachments/get_attachment first if size matters, switch to `retasc mcp-proxy` for files over the limit, and fetch the URL yourself for link attachments. Each alternative has a stated condition that selects it.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources