Skip to main content
Glama

get_attachment

Downloads an attachment's original file content, by its id from get_issue's attachments (the issue's own) or list_issue_comments' attachments (a comment's). An image (JPEG, PNG, WebP, GIF) comes back as an image, a text document (Markdown, TXT, JSON) as its text, any other document (PDF, DOCX, DOC) as an embedded base64 resource with its mime type.

Input Schema

NameRequiredDescriptionDefault
attachmentIdYesThe attachment's id, from get_issue or list_issue_comments.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / attachmentId / description
      Previous value: -"The attachment's id, from get_issue's Attachments list."New value: +"The attachment's id, from get_issue or list_issue_comments."
  2. Added

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does substantial work: it discloses that the response shape varies by mime type — image for JPEG/PNG/WebP/GIF, plain text for Markdown/TXT/JSON, and an embedded base64 resource with mime type for PDF/DOCX/DOC. That is the single most important behavioral fact for an agent consuming the result. Gaps remain on auth requirements, size/rate limits, and failure modes for unknown types.

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?

Two sentences, no filler, with the core action front-loaded and the return-format detail following. The second sentence is dense with a parenthetical and a three-way list, but every clause carries actionable information an agent needs.

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?

There is no output schema, so the description must explain returns — and it does so thoroughly, including the base64/mime-type fallback for non-image, non-text documents. For a single-parameter read tool this is nearly complete; only error handling and size constraints are absent.

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 already documents its provenance ("from get_issue or list_issue_comments"). The description mostly restates that, adding only the mild clarification distinguishing an issue-level attachment from a comment-level one, which is already implied by the schema text. 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?

Specific verb + resource: "Downloads an attachment's original file content" by id, and it explicitly traces the id to two named sibling tools (get_issue, list_issue_comments). It also spells out the three return representations by file type, so an agent knows exactly what this tool produces without opening anything else.

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?

It clearly routes the agent: the id must come from get_issue's attachments or list_issue_comments' attachments, and the parenthetical "(the issue's own)" vs "a comment's" disambiguates the two paths. What's missing is any exclusion or precondition (e.g. permissions, unsupported attachment types), but there is no real competing sibling for downloading, so the guidance is sufficient.

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.