flowcheck_list_discrepancies
Identify and filter open financial discrepancies including missing deposits, amount mismatches, and timing alerts to monitor transaction integrity.
Instructions
List open discrepancies: missing bank deposits, amount mismatches, and timing alerts. Filter by status and type.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| status | No | Filter by discrepancy status | |
| type | No | Filter by discrepancy type | |
| limit | No | Results per page (default 50, max 100) | |
| cursor | No | Pagination cursor from previous response |
Implementation Reference
- src/tools/discrepancies.ts:37-40 (handler)The handler function that executes the 'flowcheck_list_discrepancies' tool logic by calling the FlowCheck client.
async (params) => { const result = await client.request("GET", "/discrepancies", { params }); return { content: [{ type: "text" as const, text: result }] }; }, - src/tools/discrepancies.ts:16-35 (schema)Input schema definition for the 'flowcheck_list_discrepancies' tool using Zod.
inputSchema: z.object({ status: z .enum(["open", "resolved", "dismissed"]) .optional() .describe("Filter by discrepancy status"), type: z .enum(["missing_deposit", "amount_mismatch", "timing"]) .optional() .describe("Filter by discrepancy type"), limit: z .number() .min(1) .max(100) .optional() .describe("Results per page (default 50, max 100)"), cursor: z .string() .optional() .describe("Pagination cursor from previous response"), }), - src/tools/discrepancies.ts:9-41 (registration)Registration of the 'flowcheck_list_discrepancies' tool within the MCP server.
server.registerTool( "flowcheck_list_discrepancies", { title: "List Discrepancies", description: "List open discrepancies: missing bank deposits, amount mismatches, " + "and timing alerts. Filter by status and type.", inputSchema: z.object({ status: z .enum(["open", "resolved", "dismissed"]) .optional() .describe("Filter by discrepancy status"), type: z .enum(["missing_deposit", "amount_mismatch", "timing"]) .optional() .describe("Filter by discrepancy type"), limit: z .number() .min(1) .max(100) .optional() .describe("Results per page (default 50, max 100)"), cursor: z .string() .optional() .describe("Pagination cursor from previous response"), }), }, async (params) => { const result = await client.request("GET", "/discrepancies", { params }); return { content: [{ type: "text" as const, text: result }] }; }, );