Skip to main content
Glama

List tickets

list_tickets
Read-onlyIdempotent

List support tickets (token-efficient summary by default). Each ticket returns core fields plus a short body_preview and rollups (message_count, last_message_at, document_count, time_entry_count, total_time_min) — NOT the full message/document/time-entry bodies. To pull the full recent items inline, pass include (e.g. ["messages","time_entries"]); for a single ticket's whole conversation use get_ticket instead. Ordered by last activity, default limit 25 (max 200). Prefer server-side filters (status, project_id, assigned_user_id, created_by_user_id) over fetching everything.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "list_tickets"
  }
}

Input Schema

NameRequiredDescriptionDefault
sortNoField to sort by (default: last_activity)
typeNoFilter by ticket type
limitNoMaximum results (default 25, max 200)
offsetNoNumber of results to skip for pagination (default 0)
statusNoFilter by status (ticket_status lifecycle: new → classified → drafted → pending_approval → approved → resolved; escalated is a side state)
includeNoOpt in to heavy nested data. 'messages'/'documents'/'time_entries' embed the most recent items per ticket (see embed_limit); 'body' returns the full ticket body instead of a preview. Omit for the compact summary.
directionNoSort direction (default: desc)
project_idNoFilter by project UUID
embed_limitNoMax recent items per included type, per ticket (default 5, max 20). Only applies to included types.
assigned_user_idNoFilter to tickets assigned to this support-user UUID
created_by_user_idNoFilter to tickets created by this user UUID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Beyond the readOnly/idempotent annotations, it discloses what is actually returned (core fields plus body_preview and rollup counts, NOT full bodies), the default ordering and limit ceiling (25/200), and the embed_limit interaction ("only applies to included types"). That is the exact behavioral context the annotations do not carry.

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 most important fact (summary by default, not full bodies) and every sentence carries a distinct constraint. It is dense and parenthetical-heavy in a single block, which slightly slows scanning, but there is no filler.

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?

With 11 optional params, no output schema, and complete annotation coverage, the description fills the important gaps: return shape, pagination defaults, and the sibling escape hatch. Only minor items such as empty-result or payload-size behavior are unaddressed.

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 100%, so the baseline is 3, but the description adds meaning the schema does not: a concrete include example (["messages","time_entries"]), the tradeoff between preview and full body, and the directive to prefer status/project_id/assigned_user_id/created_by_user_id over client-side filtering. It stops short of adding syntax detail for the UUID or enum params.

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 ("List support tickets") plus the default output shape ("token-efficient summary by default"), and explicitly names the sibling tool get_ticket as the alternative for a single ticket's whole conversation. An agent can distinguish it from get_ticket without opening either 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?

Gives explicit when-to-use guidance: pass include to pull full recent items inline, use get_ticket for one ticket's full conversation, and prefer server-side filters over fetching everything. This is the rare description that routes the agent both toward and away from itself.

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