Skip to main content
Glama
bestpractical

mcp-server-rt

Official

search_tickets

Read-only

Query Request Tracker using TicketSQL to find tickets by owner, queue, subject, or status. Retrieve relevant fields for each ticket to manage and resolve issues.

Instructions

Search for tickets using RT's TicketSQL query language. TicketSQL has non-obvious syntax — consult get_ticketsql_grammar before writing any query involving Status, date conditions, custom fields, or special values. Key syntax notes: Status has meta-values Active and Inactive that match all active/inactive statuses across lifecycles (e.g. Status = 'Active' rather than Status = 'open'). Basic examples: "Queue = 'General' AND Owner = 'Nobody'", "Subject LIKE 'login'". Always include fields=Subject,Status,Queue,Owner,Requestor,Priority,LastUpdated,Due unless context calls for a different set.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pageNoPage number (default 1)
orderNoSort direction
queryYesTicketSQL query string
fieldsNoComma-separated list of extra fields to include
orderbyNoField to sort by (e.g. Created, Priority, id)
per_pageNoResults per page (max 100, default 20)
subfieldsNoExpand object fields inline, e.g. {"Queue": "Name", "Owner": "Name,EmailAddress"}
Behavior4/5

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

The description adds significant context beyond the readOnlyHint annotation: TicketSQL syntax pitfalls, meta-status values, and a mandatory field list. It warns about non-obvious syntax and gives examples, which helps agents understand the query behavior and expectations.

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?

Each sentence earns its place: purpose, grammar warning, syntax key, examples, and field guidance. The description is structured and efficient for a complex query tool, avoiding fluff while packing essential details.

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?

Given the complexity of TicketSQL and no output schema, the description thoroughly covers query construction and expected fields. It does not explain the return format explicitly, but the focus on fields implies the response structure. The main challenges are addressed.

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. The description enriches parameter semantics by explaining the query parameter with concrete examples and specifying the 'fields' parameter defaults. This adds value beyond the schema's basic parameter descriptions.

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 clearly states 'Search for tickets using RT's TicketSQL query language' with a specific verb and resource. It distinguishes from sibling tools like get_ticket (single ticket retrieval) and get_ticketsql_grammar (grammar reference), making the purpose unambiguous.

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?

It explicitly instructs consulting get_ticketsql_grammar before writing complex queries, providing a clear prerequisite. While it doesn't explicitly say when not to use the tool, the guidance to consult the grammar and the context of sibling tools imply appropriate use cases.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/bestpractical/mcp-server-rt'

If you have feedback or need assistance with the MCP directory API, please join our Discord server