pbx-health-check

pbx-health-check is a command for Claude Code from WYRE-AI/msp-claude-plugins. It costs 11 tokens per session (474 once invoked), scanned A, original, Apache-2.0.

A read-only check of a connected 3CX PBX, a phone-system server. It checks whether the server responds, its services are running, and its recent event log shows repeating failures.

In plain words
What is it for?
Use it to investigate suspected PBX outages or service problems and report the affected services and recurring log errors.
Why use it?
It gives a quick view of whether the phone system is reachable and whether recent problems point to a wider fault.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Part of the 3cx plugin — 4 skills, 3 commands shipped together

Good fit Use it to investigate suspected PBX outages or service problems and report the affected services and recurring log errors.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/wyre-ai/msp-claude-plugins/pbx-health-check
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/WYRE-AI/msp-claude-plugins

Made for: Claude Code.

Or install 3cx, the plugin that ships this one along with the rest of its 4 skills, 3 commands.

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 pbx-health-check

README.md
[![agentmods](https://agentmods.dev/badge/commands/wyre-ai/msp-claude-plugins/pbx-health-check/github.svg)](https://agentmods.dev/commands/wyre-ai/msp-claude-plugins/pbx-health-check)
Your own site
<a href="https://agentmods.dev/commands/wyre-ai/msp-claude-plugins/pbx-health-check"><img src="https://agentmods.dev/badge/commands/wyre-ai/msp-claude-plugins/pbx-health-check/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 pbx-health-check

Your own site · 80×15
<a href="https://agentmods.dev/commands/wyre-ai/msp-claude-plugins/pbx-health-check"><img src="https://agentmods.dev/badge/commands/wyre-ai/msp-claude-plugins/pbx-health-check.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 11 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 474 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.00011 $0.00474
Opus 5 $0.00005 $0.00237
Sonnet 5 $0.00002 $0.00095
Haiku 4.5 $0.00001 $0.00047

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

Security

Grade A, and why

pbx-health-check 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.

msp-claude-plugins/3cx/3cx/commands/pbx-health-check.md · 70 lines

What it actually says

PBX Health Check

A quick read-only sweep of PBX liveness: current server time, service status, and a recent-window scan of the structured event log for a failure pattern.

Prerequisites

  • A 3CX PBX connected (directly or through Conduit's BYO connector) with a valid, authenticated MCP session — see the api-patterns skill

Steps

  1. Confirm connectivity

    Get the current PBX server time. A successful response confirms the session is live and authenticated before spending calls on anything else.

  2. Check service status

    List PBX services and their state. Note any service not in a healthy running state.

  3. Scan the recent event log

    Search/list the structured PBX event log for a recent window (start with the last few hours). Look for a pattern of related failures rather than treating a single isolated entry as significant — PBX event logs are noisy by nature.

  4. Synthesize

    Report:

    • Whether the PBX responded and server time looks correct (not wildly skewed from expected)
    • Any service not in a healthy state, named explicitly
    • Any recurring event-log pattern in the recent window, with timestamps

    Do not report "PBX is healthy" as a single yes/no if any service is degraded or the event log shows a repeating pattern — state each finding explicitly so the reader can judge severity themselves.

Examples

/pbx-health-check

Error Handling

  • Server time call fails or times out: The MCP session itself may have expired — re-authenticate per the api-patterns skill before assuming the PBX itself is down.
  • Event log search returns nothing: Confirm the queried time window is correct before reporting "no events" — an empty result for an unexpectedly narrow or misaligned window looks identical to a genuinely quiet PBX.
  • /queue-status — staffing-specific check, narrower than this general health sweep
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 · 70 lines · 11 tokens per session scan A 72ef129b1596

Subscribe to this mod's changes

pbx-health-check is a command published in the GitHub repository WYRE-AI/msp-claude-plugins (45 stars, last pushed 9d ago), licensed Apache-2.0. It adds 11 tokens to every session and 474 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.