flowcheck_get_cashflow
Analyze daily cash inflow and outflow patterns over time windows to identify financial trends and validate processes.
Instructions
Get daily inflow/outflow breakdown over a time window. Returns totals and per-day values. All amounts in cents.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| window | No | Time window (default: 30d) |
Implementation Reference
- src/tools/cashflow.ts:23-28 (handler)The handler function for 'flowcheck_get_cashflow' which calls the client's request method to get cash flow data.
async ({ window }) => { const result = await client.request("GET", "/cashflow", { params: { window }, }); return { content: [{ type: "text" as const, text: result }] }; }, - src/tools/cashflow.ts:16-21 (schema)The input schema definition for the 'flowcheck_get_cashflow' tool.
inputSchema: z.object({ window: z .enum(["7d", "30d", "90d"]) .optional() .describe("Time window (default: 30d)"), }), - src/tools/cashflow.ts:9-29 (registration)The registration of the 'flowcheck_get_cashflow' tool within the MCP server.
server.registerTool( "flowcheck_get_cashflow", { title: "Get Cash Flow", description: "Get daily inflow/outflow breakdown over a time window. " + "Returns totals and per-day values. All amounts in cents.", inputSchema: z.object({ window: z .enum(["7d", "30d", "90d"]) .optional() .describe("Time window (default: 30d)"), }), }, async ({ window }) => { const result = await client.request("GET", "/cashflow", { params: { window }, }); return { content: [{ type: "text" as const, text: result }] }; }, );