Skip to main content
Glama

Reply to a ticket

reply_to_ticket

Reply to a ticket

Adds a public reply to an existing ticket and bumps its last-changed timestamp, which is what moves the ticket back up the support queue. A ticket in state closed cannot be replied to and returns 400; a resolved ticket still accepts replies, so use this to reopen a conversation that was closed too early. Attachments are referenced by URL, they are not uploaded here: host the file somewhere the support team can reach and pass the link. The reply emits the ticket.updated outbound webhook event.

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": {
      "ticketId": "<ticketId>",
      "body": "<body>"
    },
    "name": "reply_to_ticket"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyYesThe reply text and, optionally, a list of attachments. Each attachment describes an already-hosted file: its name, a URL the support team can download it from, its content type and its size in bytes.
ticketIdYesTicket identifier, with or without the `ticket_` prefix.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the annotations (readOnly=false, destructive=false, idempotent=false), the description discloses the state guard and its 400 error, the timestamp-bump side effect and its queue consequence, the outbound `ticket.updated` webhook emission, and that attachments are by reference rather than upload. These are exactly the behavioral facts an agent cannot infer from the structured fields.

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?

It is front-loaded with the action, then side effects, then constraints, then attachments, and no sentence is filler. The one soft spot is the 'closed too early' sentence, which mixes the resolved-vs-closed distinction and needs a second read to parse correctly.

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 non-idempotent mutation with nested attachment objects and no output schema, the description covers the state precondition, failure mode, side effects and attachment handling. Only the response payload shape and any permission requirement are unstated, and neither blocks a correct call.

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 the baseline is 3, but the description adds real semantics: attachments must be pre-hosted somewhere the support team can reach and passed as links, clarifying that no upload happens through this tool. It does not add anything about `body.message` or the `ticket_` prefix beyond what the schema already documents.

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 opens with a specific verb and resource ('Adds a public reply to an existing ticket') and immediately characterizes the effect: it bumps the last-changed timestamp and moves the ticket up the support queue. 'Public reply' distinguishes it from internal-note style operations, and the verb is clearly separable from close_ticket, create_ticket and get_ticket without opening any 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?

It gives concrete when-to-use context ('use this to reopen a conversation that was closed too early') and an explicit when-not condition (a ticket in state `closed` returns 400). It does not name sibling tools or spell out the boundary with close_ticket/assign, and the phrase 'closed too early' is slightly muddled against the stated `closed`-rejects-replies rule, but the operative guidance is present.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.