Tool Categories
Identity Tools
2 tools for identity management
Token Tools
3 tools for token operations
Canister Tools
3 tools for canister management
Cycles Tools
2 tools for cycles operations
Identity Tools
1. get_current_identity
Shows information about the current active identity. Usage:- Current identity name
- Principal ID
- Account ID
- Anonymous status
2. create_identity
Creates a new identity from a seed phrase or anonymous. Parameters:type
: “seed” | “anonymous”name
: Identity name/keyseedPhrase
: (optional) 12 or 24 word mnemonic
Token Tools
3. transfer_icp
Transfers ICP tokens to another account. Parameters:to
: Recipient account ID or principalamount
: Amount in ICP (not e8s)memo
: (optional) Transaction memo
- Amount is specified in ICP (e.g., “1.5” = 1.5 ICP)
- Automatically converts to e8s (smallest unit)
- Validates recipient address format
4. get_balance
Checks ICP token balance for the current identity. Usage:- Balance in ICP (formatted)
- Balance in e8s (raw)
- Account ID checked
5. icrc1_transfer
Transfers ICRC-1 standard tokens between accounts. Parameters:canisterId
: Token canister IDto
: Recipient principalamount
: Amount to transfermemo
: (optional) Transaction memo
Canister Tools
6. create_canister
Creates a new canister with specified cycles. Parameters:cycles
: Amount of cycles (e.g., “5T” for 5 trillion)
- New canister ID
- Cycles allocated
- Controller information
7. deploy_wasm
Deploys WASM module to a canister. Parameters:canisterId
: Target canister IDwasmPath
: Path to WASM filemode
: “install” | “upgrade” | “reinstall”
8. get_canister_status
Retrieves detailed status information about a canister. Parameters:canisterId
: Canister ID to check
- Canister status (running/stopped)
- Memory usage
- Cycles balance
- Controllers list
- Module hash
Cycles Tools
9. get_cycles_balance
Checks cycles balance for a canister. Parameters:canisterId
: Canister ID to check
- Current cycles balance
- Formatted cycles (e.g., “5.2T”)
- Burn rate information
10. top_up_cycles
Adds cycles to a canister. Parameters:canisterId
: Canister to top upamount
: Cycles amount (e.g., “2T”)
Tool Integration
Using Tools Directly
Tools in Natural Language
When using natural language, tools are automatically selected:Tools with Agents
Specialized agents have access to all tools:Error Handling
All tools include comprehensive error handling:Invalid Parameters
Invalid Parameters
Tools validate inputs and provide clear error messages for invalid parameters.
Network Errors
Network Errors
Automatic retry logic for transient network failures.
Insufficient Resources
Insufficient Resources
Clear messages when lacking cycles, tokens, or permissions.
Tool Selection
Tool Selection
If the wrong tool is selected, the error guides to the correct one.
Best Practices
1
Use Natural Language First
Let the NLP processor select tools automatically for complex operations.
2
Validate Addresses
Always use full principal IDs or account identifiers for transfers.
3
Handle Responses
Tools return structured data - parse responses appropriately.
4
Monitor Tool Usage
Enable verbose mode to see which tools are being used.