get-all-cases
Retrieve all eDiscovery cases in a Miro organization to manage legal and compliance investigations.
Instructions
Retrieves the list of eDiscovery cases in an organization (Enterprise only)
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| 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 | |
| cursor | No | Cursor for pagination |
Implementation Reference
- src/tools/getAllCases.ts:14-26 (handler)The asynchronous function that implements the core logic of the 'get-all-cases' tool. It constructs a query object, calls MiroClient.getApi().getAllCases with limit, orgId, and query, and returns the formatted response or handles errors.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-12 (schema)Zod schema defining the input arguments for the 'get-all-cases' tool: limit (number), orgId (string), cursor (optional 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:202-202 (registration)Registers the getAllCasesTool with the ToolBootstrapper, making the 'get-all-cases' tool available to the MCP server..register(getAllCasesTool)