Skip to main content
Powering SA prepaid since 2003 / No monthly fees, ever
SIMcloud bulk airtime and data recharge platform

Transactions MCP API

Connect SIMcloud Transactions when an assistant needs to send SMS or place prepaid orders as well as read account information. The api permission can spend wallet funds. Review the recipient, service and amount before approving a write action.

On this page

POST /api/mcp.php

Open the API reference

Review transaction permissions before approving

Use api with the transactions URL. This permission can place orders, send SMS and spend wallet funds. Before approving an action, confirm the account, service, recipient and amount.

codex mcp add simcloud-transactions --url https://simcloud.co.za/api/mcp.php
codex mcp login simcloud-transactions --scopes api

Read the OAuth discovery and token guide

Discover protocol support and list available tools

The HTTP JSON-RPC examples use MCP 2026-07-28. Read server/discover for the versions the server offers. Use an OAuth access token for this resource in the tool requests. Follow your client’s negotiated protocol if it uses an older supported version.

The JSON-RPC response can have HTTP 200 and still report a tool error. Check result.isError and result.structuredContent.ok before reading data.

server/discover · /api/mcp.php

curl -4 -sS -i -X POST "${SIMCLOUD_API_BASE:-https://simcloud.co.za}/api/mcp.php" \
  -H "Authorization: Bearer $SIMCLOUD_MCP_ACCESS_TOKEN" \
  -H 'Accept: application/json, text/event-stream' \
  -H 'MCP-Protocol-Version: 2026-07-28' \
  -H 'Mcp-Method: server/discover' \
  -H 'Content-Type: application/json' \
  --data '{
  "jsonrpc": "2.0",
  "id": "docs-example",
  "method": "server/discover",
  "params": {
    "_meta": {
      "io.modelcontextprotocol/protocolVersion": "2026-07-28",
      "io.modelcontextprotocol/clientCapabilities": {}
    }
  }
}'

tools/list · /api/mcp.php

curl -4 -sS -i -X POST "${SIMCLOUD_API_BASE:-https://simcloud.co.za}/api/mcp.php" \
  -H "Authorization: Bearer $SIMCLOUD_MCP_ACCESS_TOKEN" \
  -H 'Accept: application/json, text/event-stream' \
  -H 'MCP-Protocol-Version: 2026-07-28' \
  -H 'Mcp-Method: tools/list' \
  -H 'Content-Type: application/json' \
  --data '{
  "jsonrpc": "2.0",
  "id": "docs-example",
  "method": "tools/list",
  "params": {
    "_meta": {
      "io.modelcontextprotocol/protocolVersion": "2026-07-28",
      "io.modelcontextprotocol/clientCapabilities": {}
    }
  }
}'

Check health, the OAuth challenge and browser preflight

A plain GET returns the public health response. HEAD without an access token returns HTTP 401 and a WWW-Authenticate header with the resource metadata link. An allowed browser origin receives HTTP 204 for OPTIONS. Send actual JSON-RPC requests as POST.

GET /api/mcp.php

curl -4 -sS -i "${SIMCLOUD_API_BASE:-https://simcloud.co.za}/api/mcp.php"

HTTP 200 response excerpt

{
  "status": "ok",
  "endpoint": "/api/mcp.php"
}

HEAD /api/mcp.php

curl -4 -sS -I "${SIMCLOUD_API_BASE:-https://simcloud.co.za}/api/mcp.php"

OPTIONS /api/mcp.php

curl -4 -sS -i -X OPTIONS "${SIMCLOUD_API_BASE:-https://simcloud.co.za}/api/mcp.php" \
  -H 'Origin: https://chatgpt.com' \
  -H 'Access-Control-Request-Method: POST'

get_wallet_balance

Call this tool with the named arguments below. It uses GET /api/balance.php. The reporting connection can also run this tool.

tools/call · /api/mcp.php

curl -4 -sS -i -X POST "${SIMCLOUD_API_BASE:-https://simcloud.co.za}/api/mcp.php" \
  -H "Authorization: Bearer $SIMCLOUD_MCP_ACCESS_TOKEN" \
  -H 'Accept: application/json, text/event-stream' \
  -H 'MCP-Protocol-Version: 2026-07-28' \
  -H 'Mcp-Method: tools/call' \
  -H 'Mcp-Name: get_wallet_balance' \
  -H 'Content-Type: application/json' \
  --data '{
  "jsonrpc": "2.0",
  "id": "docs-example",
  "method": "tools/call",
  "params": {
    "name": "get_wallet_balance",
    "arguments": {},
    "_meta": {
      "io.modelcontextprotocol/protocolVersion": "2026-07-28",
      "io.modelcontextprotocol/clientCapabilities": {}
    }
  }
}'

get_transaction_history

Call this tool with the named arguments below. It uses GET /api/transactions.php. Substitute identifiers or dates from your account. The reporting connection can also run this tool.

tools/call · /api/mcp.php

curl -4 -sS -i -X POST "${SIMCLOUD_API_BASE:-https://simcloud.co.za}/api/mcp.php" \
  -H "Authorization: Bearer $SIMCLOUD_MCP_ACCESS_TOKEN" \
  -H 'Accept: application/json, text/event-stream' \
  -H 'MCP-Protocol-Version: 2026-07-28' \
  -H 'Mcp-Method: tools/call' \
  -H 'Mcp-Name: get_transaction_history' \
  -H 'Content-Type: application/json' \
  --data '{
  "jsonrpc": "2.0",
  "id": "docs-example",
  "method": "tools/call",
  "params": {
    "name": "get_transaction_history",
    "arguments": {
      "date_from": "2026-10-01",
      "date_to": "2026-10-24",
      "type": "airtime",
      "limit": 10
    },
    "_meta": {
      "io.modelcontextprotocol/protocolVersion": "2026-07-28",
      "io.modelcontextprotocol/clientCapabilities": {}
    }
  }
}'

get_sms_status

Call this tool with the named arguments below. It uses GET /api/sms.php. Substitute identifiers or dates from your account. The reporting connection can also run this tool.

tools/call · /api/mcp.php

curl -4 -sS -i -X POST "${SIMCLOUD_API_BASE:-https://simcloud.co.za}/api/mcp.php" \
  -H "Authorization: Bearer $SIMCLOUD_MCP_ACCESS_TOKEN" \
  -H 'Accept: application/json, text/event-stream' \
  -H 'MCP-Protocol-Version: 2026-07-28' \
  -H 'Mcp-Method: tools/call' \
  -H 'Mcp-Name: get_sms_status' \
  -H 'Content-Type: application/json' \
  --data '{
  "jsonrpc": "2.0",
  "id": "docs-example",
  "method": "tools/call",
  "params": {
    "name": "get_sms_status",
    "arguments": {
      "sms_id": 1
    },
    "_meta": {
      "io.modelcontextprotocol/protocolVersion": "2026-07-28",
      "io.modelcontextprotocol/clientCapabilities": {}
    }
  }
}'

get_airtime_order

Call this tool with the named arguments below. It uses GET /api/airtime.php. Substitute identifiers or dates from your account. The reporting connection can also run this tool.

tools/call · /api/mcp.php

curl -4 -sS -i -X POST "${SIMCLOUD_API_BASE:-https://simcloud.co.za}/api/mcp.php" \
  -H "Authorization: Bearer $SIMCLOUD_MCP_ACCESS_TOKEN" \
  -H 'Accept: application/json, text/event-stream' \
  -H 'MCP-Protocol-Version: 2026-07-28' \
  -H 'Mcp-Method: tools/call' \
  -H 'Mcp-Name: get_airtime_order' \
  -H 'Content-Type: application/json' \
  --data '{
  "jsonrpc": "2.0",
  "id": "docs-example",
  "method": "tools/call",
  "params": {
    "name": "get_airtime_order",
    "arguments": {
      "request_id": 1
    },
    "_meta": {
      "io.modelcontextprotocol/protocolVersion": "2026-07-28",
      "io.modelcontextprotocol/clientCapabilities": {}
    }
  }
}'

get_data_order

Call this tool with the named arguments below. It uses GET /api/data.php. Substitute identifiers or dates from your account. The reporting connection can also run this tool.

tools/call · /api/mcp.php

curl -4 -sS -i -X POST "${SIMCLOUD_API_BASE:-https://simcloud.co.za}/api/mcp.php" \
  -H "Authorization: Bearer $SIMCLOUD_MCP_ACCESS_TOKEN" \
  -H 'Accept: application/json, text/event-stream' \
  -H 'MCP-Protocol-Version: 2026-07-28' \
  -H 'Mcp-Method: tools/call' \
  -H 'Mcp-Name: get_data_order' \
  -H 'Content-Type: application/json' \
  --data '{
  "jsonrpc": "2.0",
  "id": "docs-example",
  "method": "tools/call",
  "params": {
    "name": "get_data_order",
    "arguments": {
      "request_id": 1
    },
    "_meta": {
      "io.modelcontextprotocol/protocolVersion": "2026-07-28",
      "io.modelcontextprotocol/clientCapabilities": {}
    }
  }
}'

get_vas_order

Call this tool with the named arguments below. It uses GET /api/vas.php. Substitute identifiers or dates from your account. The reporting connection can also run this tool.

tools/call · /api/mcp.php

curl -4 -sS -i -X POST "${SIMCLOUD_API_BASE:-https://simcloud.co.za}/api/mcp.php" \
  -H "Authorization: Bearer $SIMCLOUD_MCP_ACCESS_TOKEN" \
  -H 'Accept: application/json, text/event-stream' \
  -H 'MCP-Protocol-Version: 2026-07-28' \
  -H 'Mcp-Method: tools/call' \
  -H 'Mcp-Name: get_vas_order' \
  -H 'Content-Type: application/json' \
  --data '{
  "jsonrpc": "2.0",
  "id": "docs-example",
  "method": "tools/call",
  "params": {
    "name": "get_vas_order",
    "arguments": {
      "order_id": 1
    },
    "_meta": {
      "io.modelcontextprotocol/protocolVersion": "2026-07-28",
      "io.modelcontextprotocol/clientCapabilities": {}
    }
  }
}'

get_electricity_order

Call this tool with the named arguments below. It uses GET /api/electricity.php. Substitute identifiers or dates from your account. The reporting connection can also run this tool.

tools/call · /api/mcp.php

curl -4 -sS -i -X POST "${SIMCLOUD_API_BASE:-https://simcloud.co.za}/api/mcp.php" \
  -H "Authorization: Bearer $SIMCLOUD_MCP_ACCESS_TOKEN" \
  -H 'Accept: application/json, text/event-stream' \
  -H 'MCP-Protocol-Version: 2026-07-28' \
  -H 'Mcp-Method: tools/call' \
  -H 'Mcp-Name: get_electricity_order' \
  -H 'Content-Type: application/json' \
  --data '{
  "jsonrpc": "2.0",
  "id": "docs-example",
  "method": "tools/call",
  "params": {
    "name": "get_electricity_order",
    "arguments": {
      "order_id": 1
    },
    "_meta": {
      "io.modelcontextprotocol/protocolVersion": "2026-07-28",
      "io.modelcontextprotocol/clientCapabilities": {}
    }
  }
}'

register_simcloud_user

Call this tool with the named arguments below. It uses POST /api/register.php. Replace the sample values and obtain approval before submitting. Check the recorded result before retrying.

tools/call · /api/mcp.php

curl -4 -sS -i -X POST "${SIMCLOUD_API_BASE:-https://simcloud.co.za}/api/mcp.php" \
  -H "Authorization: Bearer $SIMCLOUD_MCP_ACCESS_TOKEN" \
  -H 'Accept: application/json, text/event-stream' \
  -H 'MCP-Protocol-Version: 2026-07-28' \
  -H 'Mcp-Method: tools/call' \
  -H 'Mcp-Name: register_simcloud_user' \
  -H 'Content-Type: application/json' \
  --data '{
  "jsonrpc": "2.0",
  "id": "docs-example",
  "method": "tools/call",
  "params": {
    "name": "register_simcloud_user",
    "arguments": {
      "first_name": "Example",
      "last_name": "Customer",
      "cell": "YOUR_LOCAL_CELL",
      "email": "customer@example.test",
      "password": "REPLACE_WITH_CUSTOMER_PASSWORD"
    },
    "_meta": {
      "io.modelcontextprotocol/protocolVersion": "2026-07-28",
      "io.modelcontextprotocol/clientCapabilities": {}
    }
  }
}'

lookup_network

Call this tool with the named arguments below. It uses GET /api/network.php.

tools/call · /api/mcp.php

curl -4 -sS -i -X POST "${SIMCLOUD_API_BASE:-https://simcloud.co.za}/api/mcp.php" \
  -H "Authorization: Bearer $SIMCLOUD_MCP_ACCESS_TOKEN" \
  -H 'Accept: application/json, text/event-stream' \
  -H 'MCP-Protocol-Version: 2026-07-28' \
  -H 'Mcp-Method: tools/call' \
  -H 'Mcp-Name: lookup_network' \
  -H 'Content-Type: application/json' \
  --data '{
  "jsonrpc": "2.0",
  "id": "docs-example",
  "method": "tools/call",
  "params": {
    "name": "lookup_network",
    "arguments": {
      "msisdn": "YOUR_LOCAL_CELL"
    },
    "_meta": {
      "io.modelcontextprotocol/protocolVersion": "2026-07-28",
      "io.modelcontextprotocol/clientCapabilities": {}
    }
  }
}'

send_sms

Call this tool with the named arguments below. It uses POST /api/sms.php. Replace the sample values and obtain approval before submitting. Check the recorded result before retrying.

tools/call · /api/mcp.php

curl -4 -sS -i -X POST "${SIMCLOUD_API_BASE:-https://simcloud.co.za}/api/mcp.php" \
  -H "Authorization: Bearer $SIMCLOUD_MCP_ACCESS_TOKEN" \
  -H 'Accept: application/json, text/event-stream' \
  -H 'MCP-Protocol-Version: 2026-07-28' \
  -H 'Mcp-Method: tools/call' \
  -H 'Mcp-Name: send_sms' \
  -H 'Content-Type: application/json' \
  --data '{
  "jsonrpc": "2.0",
  "id": "docs-example",
  "method": "tools/call",
  "params": {
    "name": "send_sms",
    "arguments": {
      "recipient": "YOUR_27_CELL",
      "message": "Example SMS from SIMcloud."
    },
    "_meta": {
      "io.modelcontextprotocol/protocolVersion": "2026-07-28",
      "io.modelcontextprotocol/clientCapabilities": {}
    }
  }
}'

create_airtime_order

Call this tool with the named arguments below. It uses POST /api/airtime.php. Replace the sample values and obtain approval before submitting. Check the recorded result before retrying.

tools/call · /api/mcp.php

curl -4 -sS -i -X POST "${SIMCLOUD_API_BASE:-https://simcloud.co.za}/api/mcp.php" \
  -H "Authorization: Bearer $SIMCLOUD_MCP_ACCESS_TOKEN" \
  -H 'Accept: application/json, text/event-stream' \
  -H 'MCP-Protocol-Version: 2026-07-28' \
  -H 'Mcp-Method: tools/call' \
  -H 'Mcp-Name: create_airtime_order' \
  -H 'Content-Type: application/json' \
  --data '{
  "jsonrpc": "2.0",
  "id": "docs-example",
  "method": "tools/call",
  "params": {
    "name": "create_airtime_order",
    "arguments": {
      "msisdn": "YOUR_LOCAL_CELL",
      "network": "vodacom",
      "amount": 10,
      "reference": "DOCS-AIRTIME-01"
    },
    "_meta": {
      "io.modelcontextprotocol/protocolVersion": "2026-07-28",
      "io.modelcontextprotocol/clientCapabilities": {}
    }
  }
}'

list_data_products

Call this tool with the named arguments below. It uses GET /api/data.php.

tools/call · /api/mcp.php

curl -4 -sS -i -X POST "${SIMCLOUD_API_BASE:-https://simcloud.co.za}/api/mcp.php" \
  -H "Authorization: Bearer $SIMCLOUD_MCP_ACCESS_TOKEN" \
  -H 'Accept: application/json, text/event-stream' \
  -H 'MCP-Protocol-Version: 2026-07-28' \
  -H 'Mcp-Method: tools/call' \
  -H 'Mcp-Name: list_data_products' \
  -H 'Content-Type: application/json' \
  --data '{
  "jsonrpc": "2.0",
  "id": "docs-example",
  "method": "tools/call",
  "params": {
    "name": "list_data_products",
    "arguments": {
      "network": "vodacom"
    },
    "_meta": {
      "io.modelcontextprotocol/protocolVersion": "2026-07-28",
      "io.modelcontextprotocol/clientCapabilities": {}
    }
  }
}'

create_data_order

Call this tool with the named arguments below. It uses POST /api/data.php. Replace the sample values and obtain approval before submitting. Check the recorded result before retrying.

tools/call · /api/mcp.php

curl -4 -sS -i -X POST "${SIMCLOUD_API_BASE:-https://simcloud.co.za}/api/mcp.php" \
  -H "Authorization: Bearer $SIMCLOUD_MCP_ACCESS_TOKEN" \
  -H 'Accept: application/json, text/event-stream' \
  -H 'MCP-Protocol-Version: 2026-07-28' \
  -H 'Mcp-Method: tools/call' \
  -H 'Mcp-Name: create_data_order' \
  -H 'Content-Type: application/json' \
  --data '{
  "jsonrpc": "2.0",
  "id": "docs-example",
  "method": "tools/call",
  "params": {
    "name": "create_data_order",
    "arguments": {
      "msisdn": "YOUR_LOCAL_CELL",
      "network": "vodacom",
      "amount": 25,
      "reference": "DOCS-DATA-01"
    },
    "_meta": {
      "io.modelcontextprotocol/protocolVersion": "2026-07-28",
      "io.modelcontextprotocol/clientCapabilities": {}
    }
  }
}'

list_vas_products

Call this tool with the named arguments below. It uses GET /api/vas.php.

tools/call · /api/mcp.php

curl -4 -sS -i -X POST "${SIMCLOUD_API_BASE:-https://simcloud.co.za}/api/mcp.php" \
  -H "Authorization: Bearer $SIMCLOUD_MCP_ACCESS_TOKEN" \
  -H 'Accept: application/json, text/event-stream' \
  -H 'MCP-Protocol-Version: 2026-07-28' \
  -H 'Mcp-Method: tools/call' \
  -H 'Mcp-Name: list_vas_products' \
  -H 'Content-Type: application/json' \
  --data '{
  "jsonrpc": "2.0",
  "id": "docs-example",
  "method": "tools/call",
  "params": {
    "name": "list_vas_products",
    "arguments": {},
    "_meta": {
      "io.modelcontextprotocol/protocolVersion": "2026-07-28",
      "io.modelcontextprotocol/clientCapabilities": {}
    }
  }
}'

create_vas_order

Call this tool with the named arguments below. It uses POST /api/vas.php. Replace the sample values and obtain approval before submitting. Check the recorded result before retrying.

tools/call · /api/mcp.php

curl -4 -sS -i -X POST "${SIMCLOUD_API_BASE:-https://simcloud.co.za}/api/mcp.php" \
  -H "Authorization: Bearer $SIMCLOUD_MCP_ACCESS_TOKEN" \
  -H 'Accept: application/json, text/event-stream' \
  -H 'MCP-Protocol-Version: 2026-07-28' \
  -H 'Mcp-Method: tools/call' \
  -H 'Mcp-Name: create_vas_order' \
  -H 'Content-Type: application/json' \
  --data '{
  "jsonrpc": "2.0",
  "id": "docs-example",
  "method": "tools/call",
  "params": {
    "name": "create_vas_order",
    "arguments": {
      "voucher_type": "YOUR_VOUCHER_SLUG",
      "amount": 50,
      "reference": "DOCS-VAS-01"
    },
    "_meta": {
      "io.modelcontextprotocol/protocolVersion": "2026-07-28",
      "io.modelcontextprotocol/clientCapabilities": {}
    }
  }
}'

check_electricity_meter

Call this tool with the named arguments below. It uses GET /api/electricity.php.

tools/call · /api/mcp.php

curl -4 -sS -i -X POST "${SIMCLOUD_API_BASE:-https://simcloud.co.za}/api/mcp.php" \
  -H "Authorization: Bearer $SIMCLOUD_MCP_ACCESS_TOKEN" \
  -H 'Accept: application/json, text/event-stream' \
  -H 'MCP-Protocol-Version: 2026-07-28' \
  -H 'Mcp-Method: tools/call' \
  -H 'Mcp-Name: check_electricity_meter' \
  -H 'Content-Type: application/json' \
  --data '{
  "jsonrpc": "2.0",
  "id": "docs-example",
  "method": "tools/call",
  "params": {
    "name": "check_electricity_meter",
    "arguments": {
      "meter_number": "YOUR_METER_NUMBER"
    },
    "_meta": {
      "io.modelcontextprotocol/protocolVersion": "2026-07-28",
      "io.modelcontextprotocol/clientCapabilities": {}
    }
  }
}'

create_electricity_order

Call this tool with the named arguments below. It uses POST /api/electricity.php. Replace the sample values and obtain approval before submitting. Check the recorded result before retrying.

tools/call · /api/mcp.php

curl -4 -sS -i -X POST "${SIMCLOUD_API_BASE:-https://simcloud.co.za}/api/mcp.php" \
  -H "Authorization: Bearer $SIMCLOUD_MCP_ACCESS_TOKEN" \
  -H 'Accept: application/json, text/event-stream' \
  -H 'MCP-Protocol-Version: 2026-07-28' \
  -H 'Mcp-Method: tools/call' \
  -H 'Mcp-Name: create_electricity_order' \
  -H 'Content-Type: application/json' \
  --data '{
  "jsonrpc": "2.0",
  "id": "docs-example",
  "method": "tools/call",
  "params": {
    "name": "create_electricity_order",
    "arguments": {
      "meter_number": "YOUR_METER_NUMBER",
      "amount": 11,
      "client_reference": "DOCS-ELECTRICITY-01",
      "recipient": "YOUR_LOCAL_CELL"
    },
    "_meta": {
      "io.modelcontextprotocol/protocolVersion": "2026-07-28",
      "io.modelcontextprotocol/clientCapabilities": {}
    }
  }
}'