flowcheck_get_balance
Retrieve combined financial balances from Stripe and bank accounts in a single API call, providing available and pending amounts in USD cents for workflow analysis.
Instructions
Get combined Stripe and bank balances in one call. Returns available/pending Stripe balance and Plaid bank balance. All amounts are in cents (USD).
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/balance.ts:19-22 (handler)The async handler function that calls the FlowCheckClient to fetch the balance from the API and returns the result as text.
async () => { const result = await client.request("GET", "/balance"); return { content: [{ type: "text" as const, text: result }] }; }, - src/tools/balance.ts:11-18 (schema)Schema definition for the flowcheck_get_balance tool, including title, description, and an empty input schema.
{ title: "Get Balance", description: "Get combined Stripe and bank balances in one call. " + "Returns available/pending Stripe balance and Plaid bank balance. " + "All amounts are in cents (USD).", inputSchema: z.object({}), }, - src/tools/balance.ts:9-23 (registration)Tool registration block for flowcheck_get_balance within the registerBalanceTools function.
server.registerTool( "flowcheck_get_balance", { title: "Get Balance", description: "Get combined Stripe and bank balances in one call. " + "Returns available/pending Stripe balance and Plaid bank balance. " + "All amounts are in cents (USD).", inputSchema: z.object({}), }, async () => { const result = await client.request("GET", "/balance"); return { content: [{ type: "text" as const, text: result }] }; }, );