Skip to main content
Glama

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
NameRequiredDescriptionDefault
cursorNoCursor for pagination
limitYesThe maximum number of items in the result list
orgIdYesThe ID of the organization for which you want to retrieve the list of cases

Implementation Reference

  • 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); } }
  • 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)

Other Tools

Related Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/k-jarzyna/mcp-miro'

If you have feedback or need assistance with the MCP directory API, please join our Discord server