Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| api_key | Yes | Your Africa's Talking API key | |
| country | Yes | Your country (e.g. kenya, uganda, dr congo, rwanda, south africa) | |
| username | Yes | Your Africa's Talking username | |
| currency_code | Yes | Currency code (e.g. KES, UGX, NGN) |
Schema
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| check_balance | Check the airtime balance for your Africa's Talking account. |
| load_airtime | Load airtime to a specified telephone number and save the transaction.
Args:
phone_number: The phone number to send airtime to
amount: The amount of airtime to send
currency_code: The currency code
Returns:
A message indicating success or failure |
| get_last_topups | Get the last N top-up transactions |
| sum_last_n_topups | Calculate the sum of the last n successful top-ups, defaulting to 3. |
| count_topups_by_number | Count the number of successful top-ups to a specific phone number. |