Skip to main content

Agent-TS Tools Reference

Tools are OpenAI-callable functions that allow the agent to perform wallet operations. Each tool has a definition (schema) and a handler (implementation).

Wallet Tools

check_balance

Get the user’s current wallet balance.
Example Usage:
  • “What is my balance?”
  • “Check my USD balance”
  • “How much money do I have?“

get_transactions

View recent transaction history.
Example Usage:
  • “Show my recent transactions”
  • “What are my last 5 transactions?”
  • “Transaction history”

initiate_transfer

Send money to another user or card.
Example Usage:
  • “Send 5000 to +23279123456”
  • “Transfer 1000 SLE to CARD0001”
  • “Pay 500 to 079123456”

get_account_limits

Check transaction and spending limits.
Example Usage:
  • “What are my limits?”
  • “Check my daily limit”
  • “How much can I send?”

Card Tools

get_user_cards

List all cards linked to the user’s account.
Example Usage:
  • “Show my cards”
  • “What cards do I have?”
  • “List my linked cards”

Activate and link a new NFC card.
Example Usage:
  • “Link card CARD0001 with PIN 1234”
  • “Activate my new card”
  • “Add card CARD0002”

block_card

Block/freeze a card.
Example Usage:
  • “Block my card CARD0001”
  • “Freeze card CARD0002”

unblock_card

Unblock/reactivate a blocked card.
Example Usage:
  • “Unblock card CARD0001”
  • “Reactivate my card”

KYC Tools

upload_kyc_image

Upload a single KYC document image.
This tool uses the image from the message context, not a parameter.
Example Usage:
  • [User sends image] “This is the front of my ID”
  • [User sends image] “Here’s my ID back”

upgrade_kyc

Complete KYC upgrade with both ID sides verified.
Example Usage:
  • “Complete my KYC verification”
  • “Upgrade my account”

Registration Tools

register_subscriber

Register a new subscriber account.
Example Usage:
  • “Register me as John Doe with PIN 1234”
  • “Create my account”

Tool Context

Every tool handler receives a context object:

Tool Result Format

All tool handlers return a consistent result format:

Adding Custom Tools

See the Architecture page for step-by-step instructions on adding new tools.

Next Steps

KYC Validation

OCR and fraud detection details

Webhooks

WhatsApp integration