diagnose-deeptrace

diagnose-deeptrace is a command for Claude Code from zscaler/zscaler-mcp-server. It costs 29 tokens per session (1,618 once invoked), scanned A, original, MIT.

A command for running deep-trace diagnostics on a user's device through Zscaler Digital Experience (ZDX), which monitors application and network performance.

In plain words
What is it for?
It helps find a user's device, review and analyze deep traces, start diagnostics, and clean up completed or outdated trace sessions.
Why use it?
It helps determine why a user or application is slow or unreliable by checking existing diagnostic traces or starting a new session.

Command for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter.

Part of the zscaler plugin — 42 skills, 20 commands, 1 MCP server shipped together

Good fit It helps find a user's device, review and analyze deep traces, start diagnostics, and clean up completed or outdated trace sessions.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/zscaler/zscaler-mcp-server/diagnose-deeptrace
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/zscaler/zscaler-mcp-server

Made for: Claude Code.

Or install zscaler, the plugin that ships this one along with the rest of its 42 skills, 20 commands, 1 MCP server.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for diagnose-deeptrace

README.md
[![agentmods](https://agentmods.dev/badge/commands/zscaler/zscaler-mcp-server/diagnose-deeptrace/github.svg)](https://agentmods.dev/commands/zscaler/zscaler-mcp-server/diagnose-deeptrace)
Your own site
<a href="https://agentmods.dev/commands/zscaler/zscaler-mcp-server/diagnose-deeptrace"><img src="https://agentmods.dev/badge/commands/zscaler/zscaler-mcp-server/diagnose-deeptrace/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for diagnose-deeptrace

Your own site · 80×15
<a href="https://agentmods.dev/commands/zscaler/zscaler-mcp-server/diagnose-deeptrace"><img src="https://agentmods.dev/badge/commands/zscaler/zscaler-mcp-server/diagnose-deeptrace.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 29 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,618 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00029 $0.01618
Opus 5 $0.00015 $0.00809
Sonnet 5 $0.00006 $0.00324
Haiku 4.5 $0.00003 $0.00162

Measured 11d ago against content hash 796280161ac2, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

diagnose-deeptrace scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

commands/diagnose-deeptrace.md · 183 lines

How it starts

The opening of the file, as written. The whole thing — 183 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Deep Trace Diagnostics Session

Perform deep trace diagnostics for: $ARGUMENTS

Step 1: Parse Input

Extract:

  • Username or email (required)
  • Application name (optional — if not provided, the session covers all monitored apps)
  • Action (default: analyze)
    • analyze — Check existing traces and analyze results
    • start — Start a new diagnostics session (requires write tools)
    • cleanup — Delete completed/stale traces (requires write tools)

Step 2: Find the User's Device

zdx_list_devices(search="<username>")
```text

Note the `device_id`. If multiple devices, ask the user which one.

## Step 3: Check Existing Deep Traces

```text
zdx_list_device_deep_traces(device_id="<device_id>")
```text

Review existing sessions:

- **In Progress** sessions: Wait for completion or analyze partial data
- **Completed** sessions: Proceed to analysis
- **No sessions**: Offer to start a new one (requires write tools)

## Step 4: Start a New Session (if action=start)

Requires `--enable-write-tools`.

A diagnostics session can include Deep Tracing, Hi-Fi Cloud Path, Bandwidth Testing, or Packet Capture Probing. Through the MCP tools, we support Deep Tracing sessions.

First, discover the probe IDs for the target application:

```text
zdx_get_web_probes(device_id="<device_id>", app_id="<app_id>")
zdx_list_cloudpath_probes(device_id="<device_id>", app_id="<app_id>")
```text

Then start the deep trace with all required IDs (all IDs must be integers):

```text
zdx_start_deeptrace(
  device_id="<device_id>",
  session_name="Diag-<user>-<date>",
  app_id=<app_id>,                 (integer, from zdx_list_applications)
  web_probe_id=<probe_id>,         (integer, from zdx_get_web_probes)
  cloudpath_probe_id=<probe_id>,   (integer, from zdx_list_cloudpath_probes)
  session_length_minutes=15,       (5, 15, 30, or 60 minutes)
  probe_device=True                (collect device-level statistics)
)
```text

Configuration guidance:

- **5 minutes**: Quick check for intermittent issues
- **15 minutes**: Standard diagnostics session (recommended default)
- **30 minutes**: Extended capture for hard-to-reproduce issues
- **60 minutes**: Long-running capture for periodic/scheduled issues

Read the full file on GitHub · 183 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 183 lines · 29 tokens per session scan A 796280161ac2

Subscribe to this mod's changes

diagnose-deeptrace is a command published in the GitHub repository zscaler/zscaler-mcp-server (50 stars, last pushed 3d ago), licensed MIT. It adds 29 tokens to every session and 1,618 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.