Skip to main content
Glama

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

Implementation Reference

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

Other 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