Skip to main content
Glama

updateTicketState

Destructive

Opens or closes a ticket. TWO-STEP TOOL: call it WITHOUT confirmationToken first — nothing changes and you receive a preview plus a confirmationToken. Show the preview to the user; only after the user explicitly approves, call again with the SAME arguments plus the confirmationToken. Tokens are single-use and expire after a few minutes. The testers on the ticket are notified of the change in-app, and the status is synced to a connected Jira issue. A closed ticket accepts no new replies. In the response, jiraSyncFailed appears only when a linked Jira issue could not be updated; its absence means synced or no Jira link.

Input Schema

NameRequiredDescriptionDefault
stateYesThe state to set: "open" or "closed".
ticketIdYesID of the ticket, from listTickets or getTicketDetails. Never invent ids.
productIdYesID of the beta project to query. Get valid IDs from the listProducts tool.
confirmationTokenNoTwo-step confirmation token. Omit on the first call to receive a preview plus a token; then call again with the SAME arguments plus this token to execute. Single-use and short-lived.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Goes well beyond the annotations by disclosing side effects (testers are notified in-app, status syncs to a linked Jira issue), the irreversibility consequence of closing (no new replies), and token lifetime/single-use semantics. The destructiveHint=true annotation is consistent with the described state-changing behavior.

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?

The two-step procedure is front-loaded and stated imperatively, followed by consequences and response semantics in a tight sequence. Almost every clause carries operational value; nothing is filler.

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?

With no output schema, the description compensates by explaining that jiraSyncFailed appears only on a failed Jira sync and that absence means synced or unlinked. Combined with the confirmation flow and side-effect disclosure, an agent has everything needed to invoke it safely.

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 each parameter including confirmationToken is already documented in the schema. The description reinforces the token's single-use and expiry behavior and the 'SAME arguments' requirement, but adds little per-parameter meaning beyond the schema baseline.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

"Opens or closes a ticket" gives a specific verb pair and resource, and the state enum confirms the scope. It does not explicitly distinguish itself from siblings like updateTicket or replyToTicket, so an agent must infer that this tool is only for state transitions.

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?

The description gives unusually precise invocation guidance: first call without confirmationToken to get a preview, show it to the user, then re-call with identical arguments plus the token after explicit approval. It does not state when to choose this tool over near-neighbors such as updateTicket, which keeps it from a 5.

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