Skip to main content
Glama

kpi_trends

Read-onlyIdempotent

Track Zendesk support KPIs by day, week, or month—volume, solved, reply and resolution medians, one-touch, reopen, CSAT—and compare periods to show improved or worsened trends.

Instructions

KPIs over time for charts: one row per day/week/month with volume, solved, first reply and resolution medians (calendar + business), one-touch %, reopen %, CSAT — plus period-over-period deltas marked improved/worsened (e.g. Q3 vs Q2). Default period: last 30 days.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "kpi_trends"
  }
}

Input Schema

NameRequiredDescriptionDefault
csvNoAlso return chart tables as CSV: 'inline' in the response, or 'files' written under ZENDESK_FILE_ROOT/csv_dir.none
endNoEnd date YYYY-MM-DD (exclusive). Overrides period.
startNoStart date YYYY-MM-DD (inclusive). Overrides period.
filterNoExtra Zendesk search terms to narrow scope, e.g. 'group:"Tier 2" -tags:spam brand:acme'.
periodNoReporting period: last_quarter, this_quarter, last_month, this_month, last_year, this_year, ytd, last_7_days, last_30_days, last_90_days, or a calendar unit like '2026-Q3', '2026-09', '2026'. Ignored if start/end are given.
csv_dirNoFolder (inside ZENDESK_FILE_ROOT) for csv='files'.reports
intervalNoauto
split_byNoAlso return ticket volume per period split by this (top 8 + Other), e.g. channel for a stacked chart.none
time_zoneNoTime zone for bucketing by day/hour (IANA, e.g. 'America/Los_Angeles').UTC
date_fieldNocreated
max_ticketsNoUpper bound on tickets analyzed (≈1 API call per 100).
compare_previousNoCompare totals with the previous equivalent period.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint and destructiveHint=false, so the safety profile is covered. The description adds value by explaining that deltas are marked improved/worsened and by stating the default 30-day window. It omits other behavioral facts an agent would want: data freshness, which ticket statuses/fields are counted, handling of deleted or archived tickets, and how cost scales (that detail lives only in the max_tickets schema text).

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 purpose is front-loaded in the first clause and followed by the output shape, the delta behavior, and the default period — each sentence adds something. The em-dash metric list is dense but earns its place by telling the agent exactly what columns to expect. Slightly packed rather than wasteful.

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?

With 12 parameters and no output schema, the description carries the burden of describing return shape, and it does so explicitly (metrics list, row granularity, delta markers). It also states the default window so the agent knows what happens with a zero-argument call. Remaining gaps are freshness/latency and which underlying tickets are excluded, which matter but are secondary.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 83%, so the schema already documents nearly every parameter (period vocabulary, csv modes, start/end exclusivity, split_by, time_zone). The description adds modest meaning: 'one row per day/week/month' clarifies the interval param's effect on output shape, and 'period-over-period deltas ... e.g. Q3 vs Q2' clarifies what compare_previous produces. Baseline 3 is appropriate given the schema does most of the work.

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 a specific verb and resource: 'KPIs over time' plus a row-per-day/week/month series, and it enumerates the concrete metrics returned (volume, solved, first reply and resolution medians, one-touch %, reopen %, CSAT, period-over-period deltas). An agent can tell this is a chart-ready aggregated time-series report. It doesn't name a sibling it is distinct from (e.g. backlog_report or csat_feedback), so it falls short of the top score.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

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

'For charts' is the only hint at when to reach for this tool; there is no explicit when-to-use, when-not-to-use, or named alternative report tool. Nothing tells the agent when aggregated KPI trends are preferable to a raw ticket listing or a backlog report. The default period (last 30 days) is stated but that is a parameter default, not usage guidance.

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