Africa's Talking MCP by usefulapi
v1.19.4Read Africa's Talking balance, incoming SMS, transactions; send SMS, airtime, data and voice calls.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
africastalking_get_balance Get account balance
The Africa's Talking app balance (SMS/airtime wallet), e.g. {"balance": "KES 1250.0000"}. The sandbox app has no balance. GET /version1/user.
africastalking_fetch_messages Fetch received SMS
Fetch incoming SMS received on your shortcodes/numbers, oldest first, in batches (default 25 per call). Pass last_received_id (0 for the first call, then `next_last_received_id` from the previous reply) to move through them; `has_more` stays true while a call returns messages, so keep calling until `count` is 0. Optional shortcode and keyword filters. GET /version1/messaging.
| Parameter | Type | Description |
|---|---|---|
keyword | string | Only messages that start with this keyword. |
last_received_id | integer | Id of the last message already read (default 0 = from the start). |
limit | integer | Most messages to return per call (default 25); `has_more` says if more are waiting. |
short_code | string | Only messages sent to this shortcode / number. |
africastalking_send_sms Send SMS
WRITE: send one text message to up to 100 phone numbers. Spends account credit and delivers to real phones (the sandbox app only reaches the simulator). Needs confirm=true after the user approved the recipients and text. Returns the vendor's per-recipient status (statusCode 101 = sent), message ids and cost. Never retried. POST /version1/messaging.
| Parameter | Type | Description |
|---|---|---|
confirm * | boolean | Must be true. Set it only after the user has explicitly approved this exact send (recipients, text/amount); it spends account credit. |
message * | string | The SMS text (1-1600 characters; long texts are split into several billed parts). |
to * | array | Recipients in international format, e.g. +254711000000 (max 100). |
sender_id | string | Approved alphanumeric sender ID, shortcode or long-code number (e.g. +27... in South Africa); omit to use the account default. |
africastalking_send_airtime Send airtime
WRITE: top up mobile airtime for up to 25 phone numbers. Spends account credit immediately and cannot be reversed. Needs confirm=true after the user approved each number and amount. Amounts are in the given ISO currency (e.g. KES, UGX, TZS). Pass an idempotency_key to make a retry safe. Returns per-number status and requestId (use africastalking_find_airtime_transaction to follow up). POST /version1/airtime/send.
| Parameter | Type | Description |
|---|---|---|
confirm * | boolean | Must be true. Set it only after the user has explicitly approved this exact send (recipients, text/amount); it spends account credit. |
recipients * | array | |
idempotency_key | string | Optional unique key (8-100 chars) for this send; the same key makes Africa's Talking ignore a duplicate request. |
africastalking_find_airtime_transaction Find airtime transaction
Look up an airtime transaction by its transaction id (the requestId / ATPid_... from a send reply): status, amount, destination and discount. GET /query/transaction/find.
| Parameter | Type | Description |
|---|---|---|
transaction_id * | string | The transaction id, e.g. ATPid_... |
africastalking_send_mobile_data Send mobile data bundle
WRITE: send mobile data bundles to up to 25 phone numbers from your Africa's Talking data wallet. Spends wallet credit and cannot be reversed. Needs confirm=true after the user approved each number and bundle. product_name is your data product (created in the Africa's Talking dashboard). Pass an idempotency_key to make a retry safe. Returns per-number status and transactionId (see africastalking_find_mobile_data_transaction). POST bundles /mobile/data/request.
| Parameter | Type | Description |
|---|---|---|
confirm * | boolean | Must be true. Set it only after the user has explicitly approved this exact send (recipients, text/amount); it spends account credit. |
product_name * | string | Name of your mobile data product in the Africa's Talking dashboard. |
recipients * | array | |
idempotency_key | string | Optional unique key (8-100 chars) for this send; the same key makes Africa's Talking ignore a duplicate request. |
africastalking_find_mobile_data_transaction Find mobile data transaction
Look up a mobile data transaction by its transactionId (from a send reply): status, product, destination and cost. GET bundles /query/transaction/find.
| Parameter | Type | Description |
|---|---|---|
transaction_id * | string | The mobile data transactionId. |
africastalking_get_mobile_data_wallet_balance Get mobile data wallet balance
The balance of the mobile data wallet, e.g. {"status": "Success", "balance": "KES 500.0000"}. GET bundles /query/wallet/balance.
africastalking_make_voice_call Make voice call
WRITE: place an outbound voice call from one of your Africa's Talking numbers to up to 10 phone numbers. The call is billed and rings real phones; what is said is decided by the voice callback URL configured for the number in the dashboard. Needs confirm=true after the user approved the numbers. Live apps only (the sandbox has no voice service). Returns a per-number queue status. POST voice /call.
| Parameter | Type | Description |
|---|---|---|
call_from * | string | Your Africa's Talking voice number to call from (international format). |
call_to * | array | Numbers to call (max 10). |
confirm * | boolean | Must be true. Set it only after the user has explicitly approved this exact send (recipients, text/amount); it spends account credit. |
client_request_id | string | Optional label passed back to your voice callback URL as clientRequestId. |
africastalking_get_voice_queue_status Get voice queue status
Number of outbound calls currently queued on each of your voice numbers. Live apps only. POST voice /queueStatus (a read: nothing is changed).
| Parameter | Type | Description |
|---|---|---|
phone_numbers * | array | Your Africa's Talking voice numbers to check. |