Skip to main content
Glama

preview_view

Read-onlyIdempotent

Test Zendesk view conditions before creating or changing a view by counting matching tickets and previewing a sample to validate filters first.

Instructions

Test view conditions before creating or changing a view: how many tickets match and a sample of them. Zendesk allows about 5 previews per minute.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "conditions": "<conditions>"
    },
    "name": "preview_view"
  }
}

Input Schema

NameRequiredDescriptionDefault
rowsNo
columnsNoOutput columns, e.g. ['subject','requester','updated','status'].
sort_byNo
conditionsYes{'all': [...], 'any': [...]} as for a view. Without view_id, `all` needs a condition on status, type, group_id, assignee_id, requester_id or organization_id.
count_onlyNo
sort_orderNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare this a safe, idempotent read (readOnlyHint, destructiveHint=false). The description adds two pieces of context the annotations cannot: the return shape (count plus sample rows) and the rate limit of roughly 5 previews per minute, which materially affects call strategy.

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, no filler: the first defines the action and its output, the second carries a hard operational constraint. Everything earns its place and nothing is repeated from the schema.

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 no output schema, the description correctly covers what comes back (count and a sample), which is the main thing an agent would otherwise lack. The nested conditions object is documented in the schema itself, so the remaining gap is only the undocumented sort/row controls.

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 only 33%, and the description does not explain rows, sort_by, sort_order, or count_only. It partially compensates by implying the result contains both an aggregate count and sampled rows, which helps interpret count_only and rows, but the sorting parameters remain undocumented here.

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 ("Test view conditions") and clarifies the outcome (match count plus a sample of tickets), which separates it from snapshot/build siblings. It stops short of naming an alternative tool, but the purpose is unambiguous.

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

Usage Guidelines4/5

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

"before creating or changing a view" states the timing and context in which this tool is appropriate, which is exactly the decision an agent needs to make. There is no explicit when-not or named alternative, so it is not a 5.

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