Smart Stats
gorgias_smart_statsFetch 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
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum 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. | |
| scope | Yes | The statistic scope to query (e.g., 'tickets-created', 'first-response-time'). See tool description for full list by category. | |
| cursor | No | Advanced: 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. | |
| filters | No | Additional filter objects [{member, operator, values}] | |
| end_date | Yes | End date in YYYY-MM-DD format (inclusive — automatically adjusted for Gorgias exclusive filter) | |
| measures | No | Specific measures to return. Defaults are auto-selected per scope if omitted. | |
| timezone | No | Timezone for the query (default: 'UTC'). Examples: 'America/New_York', 'Europe/London' | |
| dimensions | No | Dimensions to group by. Common: 'agent' (or 'agentId'), 'channel', 'team' (or 'teamId'), 'tag' (or 'tagId'). Aliases are auto-resolved. | |
| start_date | Yes | Start date in YYYY-MM-DD format | |
| granularity | No | Time 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. |