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.- “What is my balance?”
- “Check my USD balance”
- “How much money do I have?“
get_transactions
View recent transaction history.- “Show my recent transactions”
- “What are my last 5 transactions?”
- “Transaction history”
initiate_transfer
Send money to another user or card.- “Send 5000 to +23279123456”
- “Transfer 1000 SLE to CARD0001”
- “Pay 500 to 079123456”
get_account_limits
Check transaction and spending limits.- “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.- “Show my cards”
- “What cards do I have?”
- “List my linked cards”
link_card
Activate and link a new NFC card.- “Link card CARD0001 with PIN 1234”
- “Activate my new card”
- “Add card CARD0002”
block_card
Block/freeze a card.- “Block my card CARD0001”
- “Freeze card CARD0002”
unblock_card
Unblock/reactivate a blocked card.- “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.
- [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.- “Complete my KYC verification”
- “Upgrade my account”
Registration Tools
register_subscriber
Register a new subscriber account.- “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