get-legal-hold
Retrieve legal hold information from Miro by providing organization, case, and legal hold IDs for enterprise compliance needs.
Instructions
Retrieves information about a specific legal hold (Enterprise only)
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| orgId | Yes | The ID of the organization for which you want to retrieve the legal hold information | |
| caseId | Yes | The ID of the case for which you want to retrieve the legal hold information | |
| legalHoldId | Yes | The ID of the legal hold you want to retrieve |
Implementation Reference
- src/tools/getLegalHold.ts:14-23 (handler)The asynchronous function that implements the core logic of the 'get-legal-hold' tool. It fetches legal hold information via MiroClient API and handles errors.fn: async ({ orgId, caseId, legalHoldId }) => { try { const response = await MiroClient.getApi().getLegalHold(orgId, caseId, legalHoldId); return ServerResponse.text(JSON.stringify(response.body, null, 2)); } catch (error) { process.stderr.write(`Error retrieving legal hold: ${error}\n`); return ServerResponse.error(error); } }
- src/tools/getLegalHold.ts:9-13 (schema)Zod schema defining the input parameters for the 'get-legal-hold' tool: orgId, caseId, legalHoldId.args: { orgId: z.string().describe("The ID of the organization for which you want to retrieve the legal hold information"), caseId: z.string().describe("The ID of the case for which you want to retrieve the legal hold information"), legalHoldId: z.string().describe("The ID of the legal hold you want to retrieve") },
- src/index.ts:205-205 (registration)The line where the get-legal-hold tool is registered with the ToolBootstrapper..register(getLegalHoldTool)
- src/index.ts:104-104 (registration)Import statement for the get-legal-hold tool module.import getLegalHoldTool from './tools/getLegalHold.js';