Skip to main content
Glama

download_attachment

Read-onlyIdempotent

Retrieve a Zendesk attachment by ID from ticket comments to view images, read text inline, or save other files to a specified path.

Instructions

Fetch an attachment (IDs come from list_ticket_comments). Images are returned so you can see them, text files are returned inline; anything else must be saved with save_to.

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": {
      "attachment_id": "<attachment_id>"
    },
    "name": "download_attachment"
  }
}

Input Schema

NameRequiredDescriptionDefault
save_toNoSave to this path inside ZENDESK_FILE_ROOT instead of returning content.
attachment_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive), and the description goes further by describing the return mode per content type — images come back viewable, text comes back inline, everything else must be written to a path. It omits error behavior when a binary attachment is fetched without save_to, and any size or permission limitations.

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?

Three short clauses with no filler, front-loaded with the action and immediately followed by the prerequisite and the branching output behavior. The parenthetical about ID provenance is well placed; "so you can see them" is slightly conversational but carries the useful signal that image content is rendered rather than dumped as bytes.

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?

With no output schema, the description carries the burden of explaining return behavior, and it does so across all three content classes. What's missing is the result of the save_to path (returned path vs. confirmation) and failure modes for unsupported attachments, which an agent would want before calling.

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 only 50% (attachment_id is undocumented), so the description has to compensate and largely does: it says where attachment_id values originate and explains save_to's purpose as the required path for non-displayable content, including the ZENDESK_FILE_ROOT scoping note already in the schema. It still doesn't say what a successful save returns.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

"Fetch an attachment" is a specific verb+resource pair, and it even names where attachment IDs come from (list_ticket_comments). It does not explicitly contrast itself with the sibling upload_attachment, so the differentiation is implied rather than stated, which keeps it just short of a 5.

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 gives real routing guidance: obtain IDs from list_ticket_comments first, and use save_to when the attachment is not an image or text file. It does not state any when-not-to-use conditions or what to do on failure, but the positive-path guidance is clear.

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