Skip to main content
Glama
benpalmer1

Gorgias MCP Server

by benpalmer1

Smart Search

gorgias_smart_search
Read-only

Search Gorgias tickets, customers, and views by order number, email, name, or keyword. Use search_type to disambiguate numeric queries between ticket IDs and order numbers.

Instructions

Intelligent search across tickets, customers, and views. Use the search_type parameter when intent is clear from context (especially for order numbers vs ticket IDs). Auto-detection handles emails, topic keywords, view names, and customer names well, but ambiguous numeric queries (e.g. '23151' could be a Gorgias ticket ID or a Shopify order number) need search_type to disambiguate. Order number search uses Gorgias server-side full-text search across ticket subjects, messages, and metadata. Use gorgias_smart_get_ticket to view full conversation details for any ticket found.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoMax tickets to return (default: 30)
queryYesThe search query. What this means depends on search_type: for 'order_number' pass the order/reference number (e.g. '23151', 'ORD5356', '#ORD-5356'), for 'ticket_id' pass the Gorgias ticket ID, for 'email' pass the customer email, for 'auto' (default) pass any query and the tool will detect intent.
statusNoFilter results by ticket status (applied client-side)
end_dateNoISO date (YYYY-MM-DD) — only return tickets created on or before this date
start_dateNoISO date (YYYY-MM-DD) — only return tickets created on or after this date
search_typeNoExplicitly set the search strategy. 'order_number' — search by order/reference number. 'ticket_id' — fetch by Gorgias ticket ID. 'email' — find by customer email. 'customer_name' — fuzzy search by customer name. 'keyword' — search ticket subjects/excerpts. 'view' — find tickets in a named view. 'auto' (default) — auto-detect intent from query format.
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so safety and partial results are known. The description adds valuable context beyond annotations: order number search uses 'Gorgias server-side full-text search across ticket subjects, messages, and metadata,' and it discloses auto-detection limitations for ambiguous numeric queries. It does not mention pagination or result format, but the annotation coverage lowers the burden.

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 description is three sentences, but every sentence adds critical value: the purpose, usage guidance, and a follow-up tool reference. It is front-loaded and free of filler or redundant restatement of the title.

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 tool's complexity (6 parameters, 2 enums, no output schema), the description addresses the main ambiguities an agent might face, such as when to use search_type and what the order number search covers. It lacks explicit details about return structure or pagination, but the schema's limit parameter and the mention of 'tickets, customers, and views' provide sufficient context for initial invocation.

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%, and each parameter already has a meaningful description. The tool description enhances the semantics of the query and search_type by explaining when to set search_type explicitly and how auto-detection handles different input types. It also clarifies the underlying search behavior for order numbers, going beyond the schema's enum descriptions.

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?

The description clearly states the tool performs an 'Intelligent search across tickets, customers, and views,' giving a specific verb and resource. It does not explicitly contrast with the sibling gorgias_search, but the phrase 'smart search' and the detailed discussion of auto-detection differentiate it enough. It could be clearer about how it differs from gorgias_search.

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?

Provides explicit guidance on when to use the search_type parameter: 'Use the search_type parameter when intent is clear from context' and especially for ambiguous numeric queries. It also explains the strengths of auto-detection for emails, keywords, view names, and customer names. It names gorgias_smart_get_ticket as the alternative for viewing full conversations, but does not discuss when to prefer other search-related siblings like gorgias_search.

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/benpalmer1/Gorgias-MCP-Server'

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