Skip to main content
Glama

Mango Inventory

Create ticket

create_ticket
Destructive

Create a defect or maintenance ticket on an item. The organization's default assignee rules apply, and the assignee is emailed straight away. setItemStatus also sets the item's condition in the same call (like the web report form, where a defect report usually marks the item "defect"); members may use it, unlike set_item_status. With clientRequestId a repeated call returns the existing ticket instead of a duplicate; without it every call creates a new ticket. Quantity-tracked items take no tickets (refused with quantityItem).

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": {
      "itemId": "<itemId>",
      "type": "<type>",
      "title": "<title>"
    },
    "name": "create_ticket"
  }
}

Input Schema

NameRequiredDescriptionDefault
typeYes
titleYesShort ticket title
itemIdYesItem id
priorityNo
descriptionNo
setItemStatusNoAlso set the item's condition in the same operation; absent = the item status stays unchanged. set_item_status covers the other status changes.
clientRequestIdNoA unique id for this request (e.g. a UUID). A repeated call with the SAME id returns the existing ticket instead of creating a duplicate; a new id creates a new ticket.

Output Schema

NameRequiredDescriptionDefault
titleNoTicket title
statusNoTicket status
ticketIdNoThe new ticket's id
assigneeNameNoWho it was routed to

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / clientRequestId / description
      Previous value: -"Optional but recommended: a unique id you generate for this request (e.g. a UUID). If the call times out or you retry, pass the SAME id — you'll get the existing ticket back instead of creating a duplicate. Use a fresh id for each new ticket."New value: +"A unique id for this request (e.g. a UUID). A repeated call with the SAME id returns the existing ticket instead of creating a duplicate; a new id creates a new ticket."
    • changedInput schema / properties / setItemStatus / description
      Previous value: -"Also set the item's condition in the same operation. Omit to leave the item status unchanged. For other status changes use set_item_status."New value: +"Also set the item's condition in the same operation; absent = the item status stays unchanged. set_item_status covers the other status changes."
  2. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Beyond the annotations (destructive=true, idempotent=false), it discloses the immediate assignee email side effect, the default assignee rule, the refusal behavior for quantity items, and the conditional idempotency via clientRequestId. That last point usefully qualifies the blanket idempotentHint=false rather than contradicting it, since the duplicate-suppression only applies when the id is reused.

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 create action, then side effects, then idempotency, then the refusal case; every clause carries information. The density (semicolon-chained clauses) makes it slightly harder to scan than it needs to be, keeping it below a 5.

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, side-effecting creation tool, it covers permissions, notification behavior, duplication semantics, and a failure mode; an output schema exists so return values need no explanation. The only residual gap is the undocumented priority/description parameters.

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 57%, and the description adds real meaning for type ('defect or maintenance') and reinforces setItemStatus/clientRequestId semantics, but priority and description parameters are left unaddressed in both schema descriptions and the description text. Baseline 3 for a partially covered schema is appropriate.

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 gives a specific verb and resource ('Create a defect or maintenance ticket on an item') and scopes the allowed types, which lets an agent distinguish it from update_ticket, add_comment, and set_item_status 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 Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It names concrete when-nots and alternatives: quantity-tracked items are refused (quantityItem), set_item_status covers other status changes, and setItemStatus folds a condition change into this call. It also states a permission distinction ('members may use it, unlike set_item_status'), so the agent knows if this is the reachable path.

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