Skip to main content
Glama

Update a maintenance ticket

update_maintenance_ticket
Destructive

Changes: adds a note to one ticket and, when sent, moves its status (open, in progress, on hold, repaired) or its priority; never resolves, never deletes, never moves the status of a ticket that holds a room out of order. No preview: the change is made when called. Adds a note to a maintenance ticket and moves its status or priority, by the app's own rule (Maintenance › the ticket): repaired stamps who repaired it; a resolved ticket reopens only for a maintenance manager. Never resolves (a person approves a repair) and never deletes. A ticket holding a room out of order takes no status move here, in any direction (repairing, reopening or holding it changes whether the room is for sale): change it in the PMS; a note and a priority are still allowed. One of the two people the owner named. Needs the owner's sign-in.

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

Input Schema

NameRequiredDescriptionDefault
noteNoA note on the ticket
statusNoopen · in_progress · on_hold · repaired
ticketYesThe ticket number
priorityNourgent · high · normal · low

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior5/5

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

The annotations only declare readOnlyHint=false, destructiveHint=true, idempotentHint=false, openWorldHint=false; the description goes well beyond that with 'No preview: the change is made when called', 'repaired stamps who repaired it', the manager-only reopen rule, and the room-sale consequence of status moves. The 'never resolves, never deletes' clauses are consistent with destructiveHint in the sense of an irreversible state change, not a hard contradiction, though the definition does not spell out how to undo a bad status move.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The front-loading with 'Changes:' is effective, but the body is repetitive: 'never resolves, never deletes' and 'adds a note ... moves its status or priority' each appear twice, and 'One of the two people the owner named. Needs the owner's sign-in.' is a fragment appended without context. The information is valuable but the same facts could be conveyed in roughly two-thirds the length.

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 destructive, non-idempotent mutation with no output schema, the definition covers the essential burden: immediacy with no preview, permission requirements, forbidden transitions, and the out-of-order fallback. The main gap is that it never says what the caller gets back or how to confirm the resulting state after a partial update (for example, note applied but status rejected).

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%, so the schema already documents all four parameters and both enums; the description's enumeration of status and priority values largely repeats that. It does add real meaning for `status` (repaired stamps the repairer; reopen requires a manager) and for the out-of-order constraint on status, but says nothing extra about `note` beyond the 2000-char limit in the schema. Baseline 3 is appropriate when the schema carries most of the load.

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 opening 'Changes: adds a note to one ticket and, when sent, moves its status ... or its priority' is a specific verb+resource+scope statement that separates it cleanly from create_maintenance_ticket and from the read-only maintenance_tickets listing. It also front-loads the negative scope ('never resolves, never deletes'), so an agent knows the boundary of the operation immediately.

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?

It states explicit when-not conditions and where to go instead: an out-of-order-room ticket 'takes no status move here, in any direction ... change it in the PMS; a note and a priority are still allowed.' It also names the alternate flow for resolution ('a person approves a repair') and the permission gate for reopening ('only for a maintenance manager'), which is actionable routing guidance rather than inference.

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