get-organization-info
Retrieve enterprise organization details using the specified organization ID to access essential information for management and integration.
Instructions
Retrieves organization information (Enterprise only)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| orgId | Yes | id of the organization |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"orgId": {
"description": "id of the organization",
"type": "string"
}
},
"required": [
"orgId"
],
"type": "object"
}
Implementation Reference
- src/tools/getOrganizationInfo.ts:12-21 (handler)The handler function that executes the tool logic: calls MiroClient API to get organization info by orgId, stringifies and returns the response, or handles errors.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); } }
- Input schema definition using Zod: requires 'orgId' as string.args: { orgId: z.string().describe("id of the organization") },
- src/index.ts:196-196 (registration)Registers the tool with the ToolBootstrapper instance..register(getOrganizationInfoTool)