Skip to main content
Glama

Get attachment

get_attachment
Read-only

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.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "attachmentId": "<attachmentId>"
    },
    "name": "get_attachment"
  }
}

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.4/5.0
Behavior4/5

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

With annotations declaring readOnlyHint=true and openWorldHint=false, the description adds substantial context about return behavior: images return as images, text documents as text, and other documents as embedded base64 resources with mime type. It does not cover error cases or permission requirements, but the format disclosure is well beyond the annotations.

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?

Two sentences, front-loaded with the download action and id source, then efficiently covering return formats. Every clause earns its place, with no redundant restatement of the tool name or title.

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?

For a single-parameter read tool with no output schema, the description is nearly complete: it explains the source of the parameter and the variable return formats. Only error handling and permission requirements are missing, which are secondary for correct invocation.

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 coverage is 100% and already documents attachmentId as a UUID. The description still adds meaning by explaining that the id originates from get_issue or list_issue_comments attachments, helping the agent supply the correct value.

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 states a specific verb and resource: 'Downloads an attachment's original file content, by its id'. It immediately clarifies that the id comes from either get_issue's attachments or list_issue_comments' attachments, making the tool's function 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 clearly tells the agent where to obtain the required attachmentId (get_issue's attachments for issue attachments, list_issue_comments' attachments for comment attachments). It does not explicitly say when not to use the tool, but no alternative download tool exists in the sibling list, 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.