get-all-cases
Retrieve a list of eDiscovery cases for an organization using the Miro MCP server. Specify organization ID and limit for paginated results. Ideal for enterprise users managing case data.
Instructions
Retrieves the list of eDiscovery cases in an organization (Enterprise only)
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cursor | No | Cursor for pagination | |
| limit | Yes | The maximum number of items in the result list | |
| orgId | Yes | The ID of the organization for which you want to retrieve the list of cases |
Implementation Reference
- src/tools/getAllCases.ts:14-26 (handler)The asynchronous handler function that implements the core logic of the 'get-all-cases' tool. It constructs a query, calls the MiroClient API to fetch cases, and handles the response or errors appropriately.fn: async ({ limit, orgId, cursor }) => { try { const query: any = {}; if (cursor) query.cursor = cursor; const response = await MiroClient.getApi().getAllCases(limit, orgId, query); return ServerResponse.text(JSON.stringify(response.body, null, 2)); } catch (error) { process.stderr.write(`Error retrieving cases: ${error}\n`); return ServerResponse.error(error); } }
- src/tools/getAllCases.ts:9-13 (schema)Zod-based input schema defining the parameters for the 'get-all-cases' tool: limit (number), orgId (string), and optional cursor (string).args: { limit: z.number().describe("The maximum number of items in the result list"), orgId: z.string().describe("The ID of the organization for which you want to retrieve the list of cases"), cursor: z.string().optional().nullish().describe("Cursor for pagination") },
- src/index.ts:101-101 (registration)Import statement that loads the getAllCasesTool module for registration in the MCP server.import getAllCasesTool from './tools/getAllCases.js';
- src/index.ts:202-202 (registration)Registration of the getAllCasesTool in the ToolBootstrapper chain, making the 'get-all-cases' tool available to the MCP server..register(getAllCasesTool)