Skip to main content
Glama

Mango Inventory

Update ticket

update_ticket
DestructiveIdempotent

Update a ticket: change its status (open, in_progress, done, wontfix) and/or edit title, description, priority or due date. Closing = status done (resolved) or wontfix (will not be handled); restoreItemStatus: true on a close also sets the item back to "available" (typical after a repair). The due date is dueDate, a calendar day ("2026-08-11"); the legacy dueAt epoch still works; exactly one of the two, and null on either clears the date. Status and due-date changes appear in the ticket's timeline under the connected user's name. Only the reporter, the assignee (or a member of the assigned team) or a ticket manager (responsibleForTickets) can update it; viewers never can. Ticket ids come from list_tickets. Returns the updated ticket in the list_tickets row shape (createdAt, reporterName, webUrl and the ISO date twins included). Idempotent.

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

Input Schema

NameRequiredDescriptionDefault
dueAtNoDue date as epoch milliseconds at UTC midnight of the day, or null to clear (legacy form of `dueDate`; exactly one of the two)
titleNo
statusNoNew status — done = resolved, wontfix = closed without handling
dueDateNoDue date as a calendar day, "YYYY-MM-DD" (e.g. "2026-08-11"), or null to clear. A full timestamp is accepted only WITH an explicit offset ("2026-08-11T00:00:00+02:00"), and the server takes the calendar day as seen in that offset; it does no timezone conversion of its own, so an offset-less timestamp is refused. Passing both dueAt and dueDate is an error
priorityNoNew priority, or null to clear
ticketIdYesTicket id (from list_tickets)
descriptionNoNew description, or null to clear
restoreItemStatusNoWhen closing: also set the item back to "available" (typical after a repair)

Output Schema

NameRequiredDescriptionDefault
idNoTicket id
typeNoTicket type: defect | maintenance | …
dueAtNoDue date, epoch milliseconds
titleNoTicket title
statusNoTicket status: open | in_progress | done | wontfix
webUrlNoLink to this ticket in the web app, for a person to open; `id` is the handle for tool calls. Absent when the deployment has no public address
closedAtNoClose time, epoch milliseconds
dueAtIsoNoThe due date as a plain calendar day, "YYYY-MM-DD". A DAY, not a moment: the server does no timezone conversion
itemNameNoThe item the ticket is about
priorityNolow | normal | high
createdAtNoWhen the ticket was reported, epoch milliseconds — the "since when is it broken?" answer, and what "newest first" sorts on
closedAtIsoNoThe same moment as an ISO-8601 UTC timestamp
primaryCodeNoThe item's printed asset code
assigneeNameNoWho it is assigned to
createdAtIsoNoThe same moment as an ISO-8601 UTC timestamp — read THIS one; the server does no timezone conversion
reporterNameNoWho reported it. Absent when nobody did — a maintenance plan minted the ticket, or it came from a logged-out QR report

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • changedInput schema / properties / dueAt / description
      Previous value: -"Due date as epoch milliseconds at UTC midnight of the day, or null to clear. Prefer `dueDate` — pass exactly one of the two"New value: +"Due date as epoch milliseconds at UTC midnight of the day, or null to clear (legacy form of `dueDate`; exactly one of the two)"
    • changedInput schema / properties / dueDate / description
      Previous value: -"Due date as a calendar day, \"YYYY-MM-DD\" (e.g. \"2026-08-11\"), or null to clear. THIS is the form to use: it has no timezone to get wrong. A full timestamp is accepted only WITH an explicit offset (\"2026-08-11T00:00:00+02:00\") and the server takes the calendar day as seen in that offset — it does no timezone conversion of its own, so an offset-less timestamp is refused rather than guessed. Passing both dueAt and dueDate is an error"New value: +"Due date as a calendar day, \"YYYY-MM-DD\" (e.g. \"2026-08-11\"), or null to clear. A full timestamp is accepted only WITH an explicit offset (\"2026-08-11T00:00:00+02:00\"), and the server takes the calendar day as seen in that offset; it does no timezone conversion of its own, so an offset-less timestamp is refused. Passing both dueAt and dueDate is an error"
    • changedInput schema / properties / ticketId / description
      Previous value: -"Ticket id (find with list_tickets)"New value: +"Ticket id (from list_tickets)"
    • changedOutput schema / properties / dueAtIso / description
      Previous value: -"The due date as a plain calendar day, \"YYYY-MM-DD\". A DAY, not a moment: the server does no timezone conversion, so do not re-zone it into the previous evening"New value: +"The due date as a plain calendar day, \"YYYY-MM-DD\". A DAY, not a moment: the server does no timezone conversion"
    • changedOutput schema / properties / webUrl / description
      Previous value: -"Link to this ticket in the web app — give your user THIS, never the raw `id` (that is a machine handle for your next call). Absent when the deployment has no public address"New value: +"Link to this ticket in the web app, for a person to open; `id` is the handle for tool calls. Absent when the deployment has no public address"
  2. 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, it discloses the authorization model (reporter, assignee, assigned-team member, ticket manager), a side effect not visible in annotations (status and due-date changes appear in the ticket timeline under the connected user's name), and a data-consistency rule (exactly one of dueDate/dueAt; null clears). It also states the return shape, which the annotations do not.

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 the core action and field list before edge cases, and nearly every clause carries information an agent needs. It is dense and some sentences pack several rules (format, offset handling, exclusivity) into one long clause, which slightly hurts scanability.

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 an 8-parameter destructive mutation with an output schema, the description covers authorization, side effects, date-format pitfalls, status semantics, and the return shape. Nothing an agent needs in order to call it correctly appears to be missing.

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 already 88%, so the baseline is 3; the description still adds meaning by explaining the dueDate calendar-day semantics versus the legacy dueAt epoch, the exactly-one-of constraint, and null-clearing behavior. It does not clarify title/description/priority beyond the schema except for null-clears-value semantics.

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+resource ('Update a ticket') and immediately enumerates the mutable fields (status, title, description, priority, due date), then defines the terminal statuses. An agent can distinguish this from create_ticket, list_tickets, or add_comment 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?

It gives clear context for use: how closing maps to status done/wontfix, when restoreItemStatus applies ('typical after a repair'), and where ticket ids come from (list_tickets). It also states a hard exclusion ('viewers never can'), but never names an alternative tool for adjacent operations such as commenting or assigning, so routing is implied rather than fully spelled out.

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.

Resources