Skip to main content
Glama
benpalmer1

Gorgias MCP Server

by benpalmer1

Retrieve Reporting Statistic

gorgias_retrieve_reporting_statistic
Read-only

Retrieve Gorgias reporting statistics for tickets, satisfaction, response times, and more. Query scoped analytics using filters, dimensions, measures, and time-based grouping.

Instructions

POST /api/reporting/stats — Low-level reporting API. For easier stats with automatic scope defaults, dimension validation, agent name resolution, and date handling, use gorgias_smart_stats instead. Retrieve analytics reporting statistics data. The request body contains a query object whose structure is determined by the scope field. Supports filtering, grouping by dimensions, selecting measures, time-based analysis, and custom sorting. Available scopes (27 total): tickets-closed (closed ticket stats), tickets-created (created ticket stats), tickets-open (open ticket stats), tickets-replied (replied ticket stats), one-touch-tickets (resolved with one interaction), zero-touch-tickets (resolved without agent interaction), satisfaction-surveys (customer satisfaction survey data), resolution-time (time to resolve tickets), messages-sent (agent messages sent count), first-response-time (time to first agent response including automated), human-first-response-time (time to first human agent response), response-time (overall response time stats), messages-per-ticket (messages per ticket count), ticket-handle-time (agent time handling tickets), online-time (agent online time stats), tags (stats grouped by ticket tags), auto-qa (automated quality assurance scores), messages-received (messages received count), automation-rate (rate of automated interactions), workload-tickets (ticket workload distribution), automated-interactions (automated interaction events), ticket-fields (stats by custom ticket field values), voice-calls (individual voice call records), voice-agent-events (voice call events per agent), ticket-sla (ticket SLA compliance data), knowledge-insights (knowledge base usage insights), voice-calls-summary (aggregated voice call summary stats). Supports cursor-based pagination via query parameters.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoMaximum number of analytics results to return (default: 30, max: 10000).
queryYesThe statistics query object. Its structure depends on the scope value.
cursorNoPagination cursor from a previous response to continue retrieving results.
Behavior4/5

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

The annotations declare readOnlyHint=true and openWorldHint=true, and the description does not contradict them. The description adds useful behavioral context beyond the annotations, such as the query structure depending on the scope field, support for filtering/grouping/measures/time analysis, and cursor-based pagination. It does not mention rate limits or auth, but the read-only annotation provides a baseline.

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?

The description is long but well-structured: it front-loads the core purpose, then the alternative, then capabilities, and finally a comprehensive scope list. The sentence 'Retrieve analytics reporting statistics data' is somewhat redundant with the opening line, but the extensive scope list and procedural details justify the length for a tool of this complexity.

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 complex low-level API with no output schema, the description covers the core aspects: the low-level nature, the alternative, scope semantics, query capabilities, and pagination. It does not explicitly describe the response format, which could be a gap, but the detailed scope and measure/dimension lists give agents enough context to infer expected results.

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 description coverage is 100%, so the baseline is 3. The description adds significant meaning by enumerating all 27 scopes with parenthetical explanations (e.g., 'tickets-closed (closed ticket stats)'), which goes beyond the schema's bare enum list. This helps the agent select the correct scope and understand the resulting query shape.

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 identifies the tool as 'Retrieve analytics reporting statistics data' and its low-level nature ('POST /api/reporting/stats — Low-level reporting API'). It distinguishes itself from the sibling tool gorgias_smart_stats by positioning itself as the low-level alternative, which makes its 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 Guidelines5/5

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

It explicitly states when to prefer the alternative: 'For easier stats with automatic scope defaults, dimension validation, agent name resolution, and date handling, use gorgias_smart_stats instead.' This provides clear when-not-to-use guidance and names the alternative, making the use case boundaries explicit.

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