batch_card_balances
Retrieve balances for multiple virtual cards simultaneously to monitor USDC funds for online payments and subscription management.
Instructions
Check balances for multiple cards in one call.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| card_ids | Yes | Array of card IDs |
Implementation Reference
- src/tools/cards.ts:173-186 (handler)The `batch_card_balances` tool is defined and registered using `server.tool` in `src/tools/cards.ts`. It takes an array of card IDs as input and calls the `/payment/cards/balances` endpoint.
server.tool( "batch_card_balances", "Check balances for multiple cards in one call.", { card_ids: z.array(z.string()).describe("Array of card IDs"), }, async ({ card_ids }) => { try { return toolOk(await client.post<unknown>("/payment/cards/balances", { card_ids })); } catch (err) { return toolError(err); } }, );