Run an Asterisk CLI command
asterisk_cliRun 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.
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": {
"command": "<command>"
},
"name": "asterisk_cli"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| command | Yes | The CLI command, for example 'pjsip show endpoints' or 'queue show support'. |