Skip to main content
Glama

sample_ticket_text

Read-onlyIdempotent

Extracts a reproducible random sample of ticket subjects and opening messages to identify themes in free text and estimate theme volume from the sample.

Instructions

A reproducible random sample of ticket subjects and opening messages, so you can identify themes in free text. Estimate a theme's volume as (share of sample) × total_in_scope, and present it as an estimate.

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": "sample_ticket_text"
  }
}

Input Schema

NameRequiredDescriptionDefault
endNoEnd date YYYY-MM-DD (exclusive). Overrides period.
seedNoSame seed = same sample, so results are reproducible.
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.
redactNoStrip customer/agent names, emails, links and long numbers from text.
date_fieldNocreated
max_ticketsNoUpper bound on tickets analyzed (≈1 API call per 100).
sample_sizeNo
excerpt_charsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, openWorld and non-destructive, so the safety bar is covered. The description adds real interpretive value beyond them: results are a sample used to estimate volume, and the agent is instructed to present the derived number as an estimate rather than a count — a behavioral caveat not encoded anywhere else.

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?

Two sentences, zero waste, with the sampling purpose front-loaded and the estimation method following. Nothing is repeated from structured fields and nothing extraneous is included.

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 10 parameters, no output schema, and an inherently statistical result, the description does the important work of explaining how to interpret and extrapolate. It stops short of describing the shape of the returned sample or the API-call cost of large max_tickets values, which would be useful but are partly implied by the schema.

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 coverage is 70%, so most of the 10 parameters (period, start/end, filter, redact, seed, max_tickets, sample_size) are already self-documented. The description adds no parameter-level meaning — reproducibility is restated from the schema's seed description, and sample_size, excerpt_chars and date_field are left entirely to the schema.

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 names a specific verb and resource — a random sample of ticket subjects and opening messages — plus the intent (identify themes in free text). An agent can tell this apart from ticket_topics or list_ticket_comments, but the description never names those siblings to make the distinction explicit.

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

Usage Guidelines3/5

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

It states the use case (qualitative theme identification) and how to extrapolate results, which implies when to reach for it. However, it gives no exclusions or named alternatives — nothing about when sampling is the wrong choice versus running a full report or a topic classifier.

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