check_balance
View your available USDC balance on the402.ai to manage purchases, service inquiries, and paid operations through the MCP server.
Instructions
Check your pre-funded USDC balance on the402.ai. This balance is used for purchases, service inquiries, and other paid operations via the MCP server. Requires API key.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/balance.ts:6-18 (handler)The check_balance tool is registered and implemented within the server.tool call. The handler logic calls the client.authGet("/v1/balance") method.
server.tool( "check_balance", "Check your pre-funded USDC balance on the402.ai. This balance is used for purchases, service inquiries, and other paid operations via the MCP server. Requires API key.", {}, async () => { const result = await client.authGet("/v1/balance"); return { content: [ { type: "text" as const, text: JSON.stringify(result, null, 2) }, ], }; } );