Skip to main content
Glama
Zendesk MCP Server by Fruggr

Zendesk MCP Server by Fruggr

Preview a Macro Diff on a Ticket

preview_macro_diff
Idempotent

Preview a macro's ticket changes as a before-and-after diff without saving, showing only changed fields and the canned reply's public/internal flag.

Instructions

Preview what a macro would change on a ticket, as a before → after diff, without saving. Returns only the changed fields and the canned reply with its public/internal flag. To apply it, call update_ticket for the fields and add_public_comment or add_private_note for the reply.

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>",
      "macro_id": "<macro_id>"
    },
    "name": "preview_macro_diff"
  }
}

Input Schema

NameRequiredDescriptionDefault
macro_idYesMacro id, from list_macros.
ticket_idYesTicket id, from search_tickets or list_tickets.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changedv3.14.0
    • changedInput schema / properties / macro_id / description
      Previous value: -"Macro ID — the numeric id of the macro to preview. Obtain it from list_macros."New value: +"Macro id, from list_macros."
    • removedInput schema / properties / macro_id / maximum
      Removed value: -9007199254740991
    • removedInput schema / properties / macro_id / minimum
      Removed value: --9007199254740991
    • changedInput schema / properties / ticket_id / description
      Previous value: -"Ticket ID — the numeric id of the ticket to preview the macro against. 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. 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. Addedv2.10.0

TDQS

A4.5/5.0
Behavior4/5

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

Goes beyond the annotations by describing the return payload ('only the changed fields and the canned reply with its public/internal flag') and by asserting no persistence occurs. One tension remains: readOnlyHint=false implies possible state change, while the description claims nothing is saved — the description is the more precise source here, but the mismatch is left unexplained rather than reconciled.

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 essential 'what' and 'no side effects' facts, then the apply path. No filler and no repetition of the title or schema.

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?

For a two-parameter, no-output-schema tool, the description supplies the missing return-shape information and the follow-up call pattern, so an agent can call it and act on the result. Nothing needed for correct invocation is absent.

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 coverage is 100% and both parameters already document their provenance (macro_id from list_macros, ticket_id from search_tickets or list_tickets). The description adds no format, constraint, or edge-case meaning beyond what the schema provides, so the baseline 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?

States a specific verb and resource ('Preview what a macro would change on a ticket'), plus the output shape ('before → after diff') and a hard scope boundary ('without saving'). That is enough for an agent to distinguish it from update_ticket without opening either 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 positions the tool as the dry-run step and names the alternatives for applying the result: update_ticket for fields, add_public_comment or add_private_note for the reply. The when-to-use and the when-not-to-use (saving) are both stated in one line.

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