-
Notifications
You must be signed in to change notification settings - Fork 2
Add azeth_get_balance_history tool for tracking balance over time #4
Copy link
Copy link
Open
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomers
Description
Description
Add a new MCP tool azeth_get_balance_history that returns the balance history of a smart account over time, including deposits, withdrawals, and payment events.
Motivation
Agents managing budgets need to understand their spending patterns. Currently azeth_balance only returns the current balance. A history view helps agents make better economic decisions.
Suggested approach
- Add a new tool definition in
src/tools/account.ts - Use the existing
azeth_historytransaction log and aggregate balance changes - Return an array of
{ timestamp, balance, event }entries
Acceptance criteria
- Tool returns balance snapshots with timestamps
- Supports optional
fromandtodate filters - Zod schema validates all inputs
- Returns structured JSON matching the existing response format
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomers