get-organization-info
Retrieve organization details from Miro for Enterprise accounts by providing the organization ID.
Instructions
Retrieves organization information (Enterprise only)
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| orgId | Yes | id of the organization |
Implementation Reference
- src/tools/getOrganizationInfo.ts:12-21 (handler)The handler function that executes the tool logic: calls the Miro API to get organization info by orgId and returns JSON response or error.
fn: async ({ orgId }) => { try { const response = await MiroClient.getApi().enterpriseGetOrganization(orgId); return ServerResponse.text(JSON.stringify(response.body, null, 2)); } catch (error) { process.stderr.write(`Error retrieving organization info: ${error}\n`); return ServerResponse.error(error); } } - Tool schema defining name, description, and input parameters with Zod validation for orgId.
const getOrganizationInfoTool: ToolSchema = { name: "get-organization-info", description: "Retrieves organization information (Enterprise only)", args: { orgId: z.string().describe("id of the organization") }, - src/index.ts:196-196 (registration)Registration of the tool in the ToolBootstrapper chain.
.register(getOrganizationInfoTool)