get-legal-hold
Retrieve detailed legal hold information for a specific case and organization using orgId, caseId, and legalHoldId. Designed for Miro MCP server Enterprise use.
Instructions
Retrieves information about a specific legal hold (Enterprise only)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| 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 | |
| orgId | Yes | The ID of the organization for which you want to retrieve the legal hold information |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"caseId": {
"description": "The ID of the case for which you want to retrieve the legal hold information",
"type": "string"
},
"legalHoldId": {
"description": "The ID of the legal hold you want to retrieve",
"type": "string"
},
"orgId": {
"description": "The ID of the organization for which you want to retrieve the legal hold information",
"type": "string"
}
},
"required": [
"orgId",
"caseId",
"legalHoldId"
],
"type": "object"
}
Implementation Reference
- src/tools/getLegalHold.ts:14-23 (handler)The handler function that implements the core logic of the 'get-legal-hold' tool by fetching legal hold information from Miro API.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 arguments for the 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)Registers the get-legal-hold tool on the ToolBootstrapper instance..register(getLegalHoldTool)