Skip to main content
Glama
Zendesk MCP Server by Fruggr

Zendesk MCP Server by Fruggr

Create Article Attachment

create_article_attachment

Uploads a base64-encoded file to a Zendesk Help Center article and returns the new attachment's id, name, type, and size. Use it to attach images or documents referenced in article content.

Instructions

Upload a file to an article and return the created attachment (id, name, type, size). A second call adds another copy. Existing ones: list_article_attachments; ticket files: get_ticket_attachments.

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": {
      "article_id": "<article_id>",
      "file_name": "<file_name>",
      "file_base64": "<file_base64>"
    },
    "name": "create_article_attachment"
  }
}

Input Schema

NameRequiredDescriptionDefault
file_nameYesFile name with extension (e.g. "screenshot.png"), used for download.
article_idYesArticle id, from list_articles or search_articles.
file_base64YesThe file's raw bytes, base64-encoded; the server decodes them before upload. The length cap is about 7.45 MB of file; the HTTP transport also caps request bodies at 4 MB.
content_typeNoMIME type, e.g. "image/png".application/octet-stream

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changedv3.14.0
    • changedInput schema / properties / article_id / description
      Previous value: -"Article ID — the numeric id of the Help Center article. Obtain it from list_articles or search_articles."New value: +"Article id, from list_articles or search_articles."
    • removedInput schema / properties / article_id / maximum
      Removed value: -9007199254740991
    • removedInput schema / properties / article_id / minimum
      Removed value: --9007199254740991
    • changedInput schema / properties / content_type / description
      Previous value: -"MIME type of the file, e.g. \"image/png\" or \"application/pdf\". Defaults to application/octet-stream when omitted."New value: +"MIME type, e.g. \"image/png\"."
    • changedInput schema / properties / file_base64 / description
      Previous value: -"The file's raw bytes as a base64-encoded string; the server decodes them before upload. At most 10420224 characters (about 7.45 MB of file); the HTTP transport additionally caps request bodies at 4 MB."New value: +"The file's raw bytes, base64-encoded; the server decodes them before upload. The length cap is about 7.45 MB of file; the HTTP transport also caps request bodies at 4 MB."
    • changedInput schema / properties / file_name / description
      Previous value: -"Name to store the file under, including its extension (e.g. \"screenshot.png\"); used as the download name."New value: +"File name with extension (e.g. \"screenshot.png\"), used for download."
  2. 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"
  3. Changed2 schema fields changedv2.20.2
    • changedInput schema / properties / file_base64 / description
      Previous value: -"The file's raw bytes as a base64-encoded string; the server decodes them before upload."New value: +"The file's raw bytes as a base64-encoded string; the server decodes them before upload. At most 10420224 characters (about 7.45 MB of file); the HTTP transport additionally caps request bodies at 4 MB."
    • addedInput schema / properties / file_base64 / maxLength
      Added value: +10420224
  4. Addedv2.15.0
  5. Removedv2.14.0
  6. Changed3 schema fields changedv2.6.1
    • changedInput schema / properties / content_type / description
      Previous value: -"MIME type (e.g., \"image/png\", \"application/pdf\")"New value: +"MIME type of the file, e.g. \"image/png\" or \"application/pdf\". Defaults to application/octet-stream when omitted."
    • changedInput schema / properties / file_base64 / description
      Previous value: -"File content encoded as base64"New value: +"The file's raw bytes as a base64-encoded string; the server decodes them before upload."
    • changedInput schema / properties / file_name / description
      Previous value: -"File name (e.g., \"screenshot.png\")"New value: +"Name to store the file under, including its extension (e.g. \"screenshot.png\"); used as the download name."
  7. Changed1 schema field changedv2.6.0
    • changedInput schema / properties / article_id / description
      Previous value: -"Article ID"New value: +"Article ID — the numeric id of the Help Center article. Obtain it from list_articles or search_articles."
  8. Changed1 schema field changedv2.3.1
    • addedInput schema / additionalProperties
      Added value: +false
  9. First observedv1.7.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, idempotentHint=false, destructiveHint=false, and openWorldHint=true. The description adds a concrete consequence the hints only imply: re-invoking duplicates the file rather than replacing it. It also discloses the returned fields in the absence of an output schema, though it says nothing about authority/permission requirements or failure modes.

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 short sentences with zero padding. The core action and return shape come first, then the non-idempotency warning, then sibling routing — a clean front-loaded structure where every clause carries information.

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-file upload mutation with full schema coverage and explicit annotations, the definition covers action, return fields, retry semantics, and alternatives. Only permission or pre-condition context (e.g. that article_id must be valid) is absent, a minor gap given how much structured data is already supplied.

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 description coverage is 100%, so file_name, article_id, file_base64, and content_type are already fully documented, including the base64 size cap and MIME type. The description only gestures at "a file" and adds no syntax, encoding, or default behavior beyond the schema; baseline 3 applies.

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 names a specific verb and resource ("Upload a file to an article") plus the result ("return the created attachment (id, name, type, size)"). It also explicitly separates itself from list_article_attachments and get_ticket_attachments, so an agent can distinguish it from siblings without opening schemas.

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 routes the agent to the right alternatives: list_article_attachments for existing attachments and get_ticket_attachments for ticket files. The warning that "A second call adds another copy" tells the agent when this tool is not safe to retry. It stops short of stating prerequisites such as required permissions or that the article must already exist.

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