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

Reporting MCP API

Connect SIMcloud Reporting when an assistant needs to read wallet balances, transaction history or existing order status. The reports:read permission is read-only and leaves out voucher redemption codes and electricity PINs.

On this page

POST /api/reporting-mcp.php

Open the API reference

Use the reporting connection

Use reports:read with the reporting URL. You can check balances, history and order status. This permission cannot place orders or send messages. It omits voucher redemption codes and electricity PINs.

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

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/reporting-mcp.php

curl -4 -sS -i -X POST "${SIMCLOUD_API_BASE:-https://simcloud.co.za}/api/reporting-mcp.php" \
  -H "Authorization: Bearer $SIMCLOUD_REPORTING_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/reporting-mcp.php

curl -4 -sS -i -X POST "${SIMCLOUD_API_BASE:-https://simcloud.co.za}/api/reporting-mcp.php" \
  -H "Authorization: Bearer $SIMCLOUD_REPORTING_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/reporting-mcp.php

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

HTTP 200 response excerpt

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

HEAD /api/reporting-mcp.php

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

OPTIONS /api/reporting-mcp.php

curl -4 -sS -i -X OPTIONS "${SIMCLOUD_API_BASE:-https://simcloud.co.za}/api/reporting-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.

tools/call · /api/reporting-mcp.php

curl -4 -sS -i -X POST "${SIMCLOUD_API_BASE:-https://simcloud.co.za}/api/reporting-mcp.php" \
  -H "Authorization: Bearer $SIMCLOUD_REPORTING_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.

tools/call · /api/reporting-mcp.php

curl -4 -sS -i -X POST "${SIMCLOUD_API_BASE:-https://simcloud.co.za}/api/reporting-mcp.php" \
  -H "Authorization: Bearer $SIMCLOUD_REPORTING_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.

tools/call · /api/reporting-mcp.php

curl -4 -sS -i -X POST "${SIMCLOUD_API_BASE:-https://simcloud.co.za}/api/reporting-mcp.php" \
  -H "Authorization: Bearer $SIMCLOUD_REPORTING_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.

tools/call · /api/reporting-mcp.php

curl -4 -sS -i -X POST "${SIMCLOUD_API_BASE:-https://simcloud.co.za}/api/reporting-mcp.php" \
  -H "Authorization: Bearer $SIMCLOUD_REPORTING_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.

tools/call · /api/reporting-mcp.php

curl -4 -sS -i -X POST "${SIMCLOUD_API_BASE:-https://simcloud.co.za}/api/reporting-mcp.php" \
  -H "Authorization: Bearer $SIMCLOUD_REPORTING_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 response omits redeemable values.

tools/call · /api/reporting-mcp.php

curl -4 -sS -i -X POST "${SIMCLOUD_API_BASE:-https://simcloud.co.za}/api/reporting-mcp.php" \
  -H "Authorization: Bearer $SIMCLOUD_REPORTING_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 response omits redeemable values.

tools/call · /api/reporting-mcp.php

curl -4 -sS -i -X POST "${SIMCLOUD_API_BASE:-https://simcloud.co.za}/api/reporting-mcp.php" \
  -H "Authorization: Bearer $SIMCLOUD_REPORTING_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": {}
    }
  }
}'