Skip to main content
Glama

Close a support ticket

close_ticket

Close a support ticket

Closes one of your support tickets for good once the issue is solved. Use it only when nothing is left to do: a closed ticket takes no more replies and cannot be reopened, so a follow up needs a new ticket from create_ticket. To add information instead, use reply_to_ticket. Every call sends the closing email to your account address again, so call it once. ticketId comes from list_tickets, which afterwards shows the ticket only with includeArchived=true. 404 when the ticket is not yours.

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": "close_ticket"
  }
}

Input Schema

NameRequiredDescriptionDefault
ticketIdYesticketId

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / ticketId / type
      Previous value: -"integer"New value: +"string"
  2. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Goes well beyond the annotations: a closed ticket accepts no further replies and cannot be reopened, the closing email is re-sent on every call, and a 404 is returned when the ticket is not owned by the caller. These permanence and side-effect details are exactly what an agent needs and are not derivable from `destructiveHint=false`.

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?

Dense and front-loaded: the consequence of closing comes before the alternatives and the identifier sourcing. The last two sentences are slightly run-on and mix parameter sourcing with error behavior, but no sentence is wasted 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?

For a single-parameter mutation with no output schema, the definition covers the irreversibility, the side effect frequency, the identifier source, the error condition, and the follow-up paths. Nothing needed to call it correctly is 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?

The schema technically covers the single parameter at 100%, but its description is only the tautological string "ticketId". The description compensates by stating the provenance of the value (`list_tickets`) and the observable post-state (`includeArchived=true` needed to see it afterward), which is real added meaning.

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 ("Close a support ticket") and immediately qualifies the scope with "for good once the issue is solved." It explicitly separates itself from `create_ticket` (follow-ups) and `reply_to_ticket` (adding information), so an agent can choose without opening the schemas.

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?

Gives an explicit gating condition ("only when nothing is left to do") plus two named alternatives with the condition that selects each: `reply_to_ticket` to add information, `create_ticket` for anything after closure. It also warns to call exactly once because each call re-sends the email.

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.