Skip to main content
Glama

upload_attachment

Upload a file to get a temporary token for attaching it to Zendesk tickets, ticket updates, or comments; tokens expire after 60 minutes.

Instructions

Upload a file and get a token. Attach it by passing the token in upload_tokens of create_ticket, update_ticket or add_ticket_comment. Tokens expire after 60 minutes.

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": {
      "filename": "<filename>"
    },
    "name": "upload_attachment"
  }
}

Input Schema

NameRequiredDescriptionDefault
textNoPlain-text file content.
tokenNoExisting upload token to add this file to (multi-file).
filenameYes
file_pathNoLocal file (must be inside ZENDESK_FILE_ROOT).
content_typeNo
content_base64No

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 declare non-read-only, non-idempotent, open-world behavior, so the description's main contribution is the 60-minute token expiry, which is genuinely non-obvious lifecycle information not present anywhere in the structured fields. It does not mention auth requirements, size/type limits, or whether an expired token silently fails, leaving some behavioral gaps.

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?

Three short sentences, front-loaded with the action and result, then the workflow handoff, then the expiry caveat. Nothing is redundant or padded.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 6-parameter, open-world mutation with no output schema, the description covers the return value (a token) and its lifetime but omits how to pick a content source, whether filename must include an extension, and any limits. It is adequate to call the tool in the happy path but incomplete for an agent that must choose among the three input modes.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is only 50% and three content-source parameters (text, file_path, content_base64) are mutually exclusive alternatives the description never acknowledges, so an agent gets no help choosing between them. The only parameter-adjacent statement concerns the downstream `upload_tokens` field of other tools, not this tool's own inputs, and it never explains the `token` parameter's multi-file role either.

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 ("Upload a file and get a token") plus the outcome of the call, which distinguishes it immediately from the read-side sibling download_attachment. An agent knows this is the write/ingest side of the attachment workflow without opening the schema.

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?

Explicitly directs the agent to pass the returned token into `upload_tokens` of create_ticket, update_ticket or add_ticket_comment, which is exactly the downstream routing an agent needs. It lacks any "when not to use" or alternative-path guidance (e.g. attaching an already-existing file vs. uploading), so it stops short of a 5.

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