Skip to main content
Glama
benpalmer1

Gorgias MCP Server

by benpalmer1

Smart Stats

gorgias_smart_stats
Read-only

Fetch Gorgias analytics metrics with automatic validation, post-processing, and pagination. Retrieve support performance data like response times, ticket volume, and satisfaction for custom date ranges.

Instructions

Retrieve Gorgias analytics with automatic defaults, validation, post-processing, and auto-pagination.

Scopes by category: Volume: tickets-created, tickets-closed, tickets-open, tickets-replied, one-touch-tickets, zero-touch-tickets, workload-tickets Performance: first-response-time, human-first-response-time, response-time, resolution-time, ticket-handle-time Quality: satisfaction-surveys, auto-qa Messages: messages-sent, messages-received, messages-per-ticket Automation: automation-rate, automated-interactions Breakdown: tags, ticket-fields Voice: voice-calls, voice-agent-events, voice-calls-summary Other: online-time, ticket-sla, knowledge-insights

Broken scopes (return API errors): automation-rate, online-time, voice-calls, voice-agent-events, voice-calls-summary.

Auto-pagination: fetches up to 'limit' rows (default 100, max 10000) across multiple upstream pages. For queries producing many rows, use granularity: "none" (aggregate mode) to collapse the time axis. Date range is limited to 366 days per Gorgias API constraint. For manual page control, pass 'cursor' from a previous response's nextCursor field.

For raw API access, use gorgias_retrieve_reporting_statistic.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoMaximum number of rows to return after auto-pagination (default: 100, max: 10000). The tool fetches upstream pages of up to 1000 rows each and accumulates results until this limit is reached or the upstream runs out of data. For queries that would produce far more than 100 rows, prefer 'granularity: "none"' (aggregate mode) over raising this limit.
scopeYesThe statistic scope to query (e.g., 'tickets-created', 'first-response-time'). See tool description for full list by category.
cursorNoAdvanced: opaque pagination cursor from a previous response's nextCursor field. When supplied, the tool fetches a single page and returns its rows + the next cursor. Auto-pagination is disabled in this mode — the caller drives the loop.
filtersNoAdditional filter objects [{member, operator, values}]
end_dateYesEnd date in YYYY-MM-DD format (inclusive — automatically adjusted for Gorgias exclusive filter)
measuresNoSpecific measures to return. Defaults are auto-selected per scope if omitted.
timezoneNoTimezone for the query (default: 'UTC'). Examples: 'America/New_York', 'Europe/London'
dimensionsNoDimensions to group by. Common: 'agent' (or 'agentId'), 'channel', 'team' (or 'teamId'), 'tag' (or 'tagId'). Aliases are auto-resolved.
start_dateYesStart date in YYYY-MM-DD format
granularityNoTime grouping granularity (default: 'day'). Use 'none' for aggregate mode (no time bucketing) — the primary workaround for queries that would produce too many rows when grouped by day.
Behavior5/5

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

The annotations only declare readOnlyHint and openWorldHint. The description adds valuable behavioral details: automatic defaults, validation, post-processing, auto-pagination across pages, the 366-day date range constraint, cursor-driven manual pagination, and a list of broken scopes. This significantly exceeds what the annotations convey.

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 longer than average but structured with line breaks and category headers, making it scannable. The first sentence front-loads the core purpose. Some content, such as the exhaustive scope list, is necessary for correct tool selection and could not be easily trimmed without losing value.

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 (10 parameters, many scope options) and the absence of an output schema, the description does a solid job explaining behavior, pagination, and constraints. It covers return-related concepts like rows and nextCursor, though it doesn't fully describe the response shape. Still, it provides enough context for an agent to choose and invoke the tool correctly.

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?

The input schema already covers all 10 parameters with descriptions (100% coverage), so the baseline is 3. The description goes beyond by grouping scopes by category, calling out broken scopes, explaining when to use granularity 'none', and showing how to use the cursor with nextCursor. These additions give real semantic value beyond the schema.

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 opening sentence states a specific action: 'Retrieve Gorgias analytics with automatic defaults, validation, post-processing, and auto-pagination.' It clearly identifies the resource (Gorgias analytics) and distinguishes itself from the raw sibling tool by explicitly directing raw API needs to gorgias_retrieve_reporting_statistic. The scope categories further clarify what kinds of analytics are included.

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?

The description provides explicit guidance on when to use this tool versus the alternative: 'For raw API access, use gorgias_retrieve_reporting_statistic.' It also gives actionable conditions for problematic queries (e.g., use granularity: "none" for many rows) and warns about broken scopes that return API errors. This is strong, practical usage guidance.

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