Skip to main content
Glama

Run an Asterisk CLI command

asterisk_cli
Read-only

Run Asterisk CLI commands and return raw output for PBX inspection; read-only mode permits show commands until write access is enabled.

Instructions

Run a command through the Asterisk CLI and return its raw output. In the default read-only mode only inspection commands such as 'core show', 'pjsip show' and 'queue show' are permitted. Set PBX_MCP_ALLOW_WRITE=true to lift that restriction.

Input Schema

NameRequiredDescriptionDefault
commandYesThe CLI command, for example 'pjsip show endpoints' or 'queue show support'.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.1.4
    • removedInput schema / additionalProperties
      Removed value: -false
  2. First observedv0.1.1

TDQS

B3.4/5.0
Behavior1/5

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

The annotations declare readOnlyHint=true and destructiveHint=false, but the description says setting PBX_MCP_ALLOW_WRITE=true lifts the read-only restriction, permitting write commands. That conditional write capability contradicts the static read-only and non-destructive annotations.

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?

The description is three sentences, front-loaded with the core action and output behavior, then the default permission restriction and override. Every sentence adds useful context with no filler.

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?

For a one-parameter tool with full schema coverage, the description covers the action, raw output, and permission modes. It is adequate, though it could say more about invalid-command behavior, output size, and when generic CLI use is preferable to a specialized sibling.

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 100%, and the schema itself already documents the single command parameter with examples. The description adds permitted-command examples but does not add syntax, format, or semantic details beyond what the schema provides, so the baseline 3 applies.

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 states a specific verb and resource: running an Asterisk CLI command and returning raw output. It does not distinguish this generic escape hatch from more targeted siblings such as asterisk_channels, asterisk_endpoints, or asterisk_status, so it falls short of a 5.

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?

It gives clear operational context: default read-only mode, permitted inspection command families, and the PBX_MCP_ALLOW_WRITE override. However, it does not explicitly say when to prefer specialized sibling tools over this generic CLI tool, leaving alternative selection to inference.

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