Zadarma MCP by usefulapi

v1.10.1
io.usefulapi/zadarma Checked 3 days ago Published 2 days ago

Read balance, tariffs, SIP and PBX status and call logs; send SMS in Zadarma.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

zadarma_get_balance Get account balance

Get the current account balance and its currency. Good first call to check the account works. Zadarma API: GET /v1/info/balance/.

zadarma_get_tariff Get price plan

Get the account's current price plan (tariff). Zadarma API: GET /v1/tariff/.

zadarma_get_call_price Get call rate for a number

Get the per-minute call rate in the account's price plan for one phone number (destination, prefix and currency). Zadarma API: GET /v1/info/price/.

ParameterTypeDescription
number *stringDestination phone number, digits with country code, e.g. 442037691880.

zadarma_list_sip_numbers List SIP numbers

List the SIP numbers (IDs, names and status) on the account. Zadarma API: GET /v1/sip/.

zadarma_get_sip_status Get SIP number status

Check whether one SIP number is online. Zadarma API: GET /v1/sip/{sip}/status/.

ParameterTypeDescription
sip *stringSIP number ID, e.g. 00001 (padded to 5 digits).

zadarma_list_pbx_extensions List PBX extensions

List the extensions of the cloud PBX (number, name and settings). Zadarma API: GET /v1/pbx/internal/.

zadarma_get_pbx_extension_status Get PBX extension status

Check whether one PBX extension is online. Zadarma API: GET /v1/pbx/internal/{pbxsip}/status/.

ParameterTypeDescription
pbxsip *stringPBX extension number, e.g. 100.

zadarma_list_virtual_numbers List virtual numbers

List the virtual (direct) phone numbers rented on the account. Zadarma API: GET /v1/direct_numbers/.

zadarma_get_call_statistics Get call statistics

Get the call log for a period, optionally for one SIP number. Limited to 3 calls per minute per user: do not poll it. For live PBX data, use webhooks instead. Zadarma API: GET /v1/statistics/.

ParameterTypeDescription
endstringEnd, yyyy-mm-dd (to 23:59:59) or yyyy-mm-dd hh:mm:ss.
sipstringOnly calls on this SIP number ID.
startstringStart, yyyy-mm-dd (from 00:00:00) or yyyy-mm-dd hh:mm:ss.

zadarma_get_pbx_call_statistics Get PBX call statistics

Get the cloud PBX call log for a period: per call the call_id, pbx_call_id, extension (sip), start time, caller id, destination, disposition (answered, busy, no answer …), seconds and is_recorded. Use call_id or pbx_call_id with zadarma_get_call_recording_link and call_id with zadarma_get_call_transcript. Up to 1000 rows per page (skip/limit). Limited to 3 statistics calls per minute per user: do not poll it; use one wide period and page. Zadarma API: GET /v1/statistics/pbx/ (version 2).

ParameterTypeDescription
end *stringEnd, yyyy-mm-dd (to 23:59:59) or yyyy-mm-dd hh:mm:ss.
start *stringStart, yyyy-mm-dd (from 00:00:00) or yyyy-mm-dd hh:mm:ss.
call_typestringin = incoming calls only, out = outgoing calls only. Leave out for both.
limitintegerRows per page, 1 to 1000 (default 1000).
skipintegerRows to skip (paging, default 0).

zadarma_get_call_transcript Get call transcript

Get the speech recognition (transcript) of one recorded PBX call: recognitionStatus, language, and the text as phrases (default) or words with start/end times, per channel. recognitionStatus 'ready for recognize' means no transcript exists yet: start one with zadarma_start_call_transcription (or turn on automatic recognition for the extension in Zadarma). 'in progress' means try again later. Zadarma API: GET /v1/speech_recognition/.

ParameterTypeDescription
call_id *stringcall_id from zadarma_get_pbx_call_statistics (a recorded call).
alternativesbooleanAlso return alternative results (default false).
langstringRecognition language, for example en-EN or es-ES. Leave out for the call's language.
returnstringphrases (default) or words with timings.

zadarma_start_call_transcription Start call transcription

WRITE: ask Zadarma to start speech recognition of one recorded PBX call. Zadarma requires manual recognition to be enabled in the extension's settings first. Recognition is a Zadarma service that may be charged under the account's price plan; ask the user before starting many. Read the result later with zadarma_get_call_transcript. Zadarma API: PUT /v1/speech_recognition/.

ParameterTypeDescription
call_id *stringcall_id from zadarma_get_pbx_call_statistics (a recorded call).
langstringRecognition language, for example en-EN or es-ES.

zadarma_list_sms_templates List SMS templates

List the SMS templates on the account, by category. Zadarma API: GET /v1/sms/templates/.

ParameterTypeDescription
languagestringTemplate language, e.g. en. Default: the account language.
limitintegerTemplates to return (default 25, maximum 1000).
skipintegerTemplates to skip (default 0).

zadarma_send_sms Send SMS

Send an SMS to up to 10 phone numbers. This sends real messages and uses account balance; each send is billed. It is not retried, so check the result before sending again. Zadarma API: POST /v1/sms/send/.

ParameterTypeDescription
message *stringMessage text. Long text is split into several SMS and billed per part.
numbers *arrayRecipient phone numbers, digits with country code.
languagestringTemplate language, if the message uses a template.
senderstringSender: a virtual number or a text name (see the account's sender list).

zadarma_request_callback Start callback call

WRITE: ask the user before starting a callback. By default Zadarma calls `from` first, then connects it to `to`. With `predicted` true, Zadarma calls `to` first and connects `from` only if `to` answers. The call uses account balance. It is not retried, so check the reply before starting another. Zadarma API: GET /v1/request/callback/.

ParameterTypeDescription
from *stringYour phone number or SIP/PBX extension: the number Zadarma calls for the callback.
to *stringThe phone number or SIP number to connect.
predictedbooleanPredicted call: Zadarma calls `to` first and connects `from` only if `to` answers. Default false.
sipstringSIP login or PBX extension to place the call from (its caller ID and recording settings apply).