Skip to main content
Glama
Zendesk MCP Server by Fruggr

Zendesk MCP Server by Fruggr

Get Zendesk Ticket Attachments

get_ticket_attachments
Read-onlyIdempotent

Download a Zendesk ticket's attachments to view images inline and access other files by name, type, size, and download URL.

Instructions

Download a ticket's attached files to look at them. Images come inline, other files as references (name, id, type, size, download URL). To only see which files a comment has, use list_ticket_comments. Without attachment_ids it scans up to 10 pages of 100 comments (and says if it stopped): comment files first, then images pasted into email bodies once each, those under 4 KB (signature icons) as references only. An oversized image or one past the embed cap comes back as a reference saying why; past the response budget, the rest are counted as omitted.

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": {
      "ticket_id": "<ticket_id>"
    },
    "name": "get_ticket_attachments"
  }
}

Input Schema

NameRequiredDescriptionDefault
ticket_idYesTicket id, from search_tickets or list_tickets.
attachment_idsNoFetch only these files (ids from list_ticket_comments), even past the page cap; comments are read until all are found. After a full scan an id not on the ticket is named, not fetched; if the scan ends early (page cap, or a page without cursor), a missing id is fetched directly and flagged unchecked.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changedv3.14.0
    • changedInput schema / properties / attachment_ids / description
      Previous value: -"Attachment IDs to fetch (e.g. extracted from a previous list_ticket_comments or get_ticket(include_comments=true) call). When provided, the ticket's comments are read only until every id is found, and an id that is not on the ticket is named rather than listed. When omitted, the attachments of the ticket's comments are returned (repeated inline images once), read up to a page cap: on a very long thread the scan stops there, and the response says so."New value: +"Fetch only these files (ids from list_ticket_comments), even past the page cap; comments are read until all are found. After a full scan an id not on the ticket is named, not fetched; if the scan ends early (page cap, or a page without cursor), a missing id is fetched directly and flagged unchecked."
    • removedInput schema / properties / attachment_ids / items / maximum
      Removed value: -9007199254740991
    • changedInput schema / properties / ticket_id / description
      Previous value: -"Ticket ID — the numeric id of the ticket whose attachments to fetch. Obtain it from search_tickets or list_tickets."New value: +"Ticket id, from search_tickets or list_tickets."
    • removedInput schema / properties / ticket_id / maximum
      Removed value: -9007199254740991
    • removedInput schema / properties / ticket_id / minimum
      Removed value: --9007199254740991
  2. Changed5 schema fields changedv3.11.0
    • changedInput schema / properties / attachment_ids / description
      Previous value: -"Attachment IDs to fetch directly (e.g. extracted from a previous list_ticket_comments or get_ticket(include_comments=true) call). When provided, skips the comments fetch entirely. When omitted, the attachments of the ticket's comments are returned, read up to a page cap: on a very long thread the scan stops there, and the response says so."New value: +"Attachment IDs to fetch (e.g. extracted from a previous list_ticket_comments or get_ticket(include_comments=true) call). When provided, the ticket's comments are read only until every id is found, and an id that is not on the ticket is named rather than listed. When omitted, the attachments of the ticket's comments are returned (repeated inline images once), read up to a page cap: on a very long thread the scan stops there, and the response says so."
    • addedInput schema / properties / attachment_ids / items / exclusiveMinimum
      Added value: +0
    • removedInput schema / properties / attachment_ids / items / minimum
      Removed value: --9007199254740991
    • addedInput schema / properties / attachment_ids / maxItems
      Added value: +25
    • addedInput schema / properties / attachment_ids / minItems
      Added value: +1
  3. Changed1 schema field changedv3.7.0
    • changedInput schema / properties / attachment_ids / description
      Previous value: -"Attachment IDs to fetch directly (e.g. extracted from a previous list_ticket_comments or get_ticket(include_comments=true) call). When provided, skips the comments fetch entirely. When omitted, all attachments of the ticket are returned."New value: +"Attachment IDs to fetch directly (e.g. extracted from a previous list_ticket_comments or get_ticket(include_comments=true) call). When provided, skips the comments fetch entirely. When omitted, the attachments of the ticket's comments are returned, read up to a page cap: on a very long thread the scan stops there, and the response says so."
  4. Changed1 schema field changedv2.24.0
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  5. Changed1 schema field changedv2.20.0
    • changedInput schema / properties / attachment_ids / description
      Previous value: -"Attachment IDs to fetch directly (e.g. extracted from a previous get_ticket(include_comments=true) call). When provided, skips the comments fetch entirely. When omitted, all attachments of the ticket are returned."New value: +"Attachment IDs to fetch directly (e.g. extracted from a previous list_ticket_comments or get_ticket(include_comments=true) call). When provided, skips the comments fetch entirely. When omitted, all attachments of the ticket are returned."
  6. Changed1 schema field changedv2.6.0
    • changedInput schema / properties / ticket_id / description
      Previous value: -"Ticket ID"New value: +"Ticket ID — the numeric id of the ticket whose attachments to fetch. Obtain it from search_tickets or list_tickets."
  7. Changed1 schema field changedv2.3.1
    • addedInput schema / additionalProperties
      Added value: +false
  8. First observedv1.7.0

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already cover the read-only/idempotent safety profile, but the description adds substantial behavior the annotations cannot: the 10-page/100-comment scan cap with an explicit stop signal, ordering rules, the 4 KB signature-icon threshold, the oversized-image fallback with a stated reason, and output-budget omission counting. That is exactly the kind of operational context the agent needs to interpret results correctly.

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, then alternative, then the default-scan behavior — a sensible ordering with no filler sentences. The middle clause chain ('comment files first, then images pasted into email bodies once each, those under 4 KB...') is dense and slightly cryptic on first read, costing a point.

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?

There is no output schema, so the description must carry return-shape information — it does, distinguishing inline images from references and listing reference fields (name, id, type, size, download URL). Combined with the truncation and omission rules, an agent has everything needed to call and interpret this tool.

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%, so both parameters are already documented, including the nuanced attachment_ids semantics. The description still adds value by explaining the default scan path when attachment_ids is absent, which the schema does not state. It does not add new syntax or format detail beyond the schema, so it stops short of a 5.

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?

Opens with a specific verb and resource ('Download a ticket's attached files') and immediately contrasts with list_ticket_comments ('To only see which files a comment has'), so an agent can distinguish it from the nearest sibling without opening a 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?

Explicitly names the alternative tool and the condition that selects it, and explains the two operating modes (with vs. without attachment_ids) so the agent knows when to narrow the request. Covers when-not (use list_ticket_comments for mere listing) as well as when.

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