ethora-app-get-default-rooms-with-app-id
Retrieve default rooms for an application using its appId with read access permissions, facilitating app integration and management within the Ethora platform.
Instructions
Get the default rooms for the application by appId. You should have read access to the application.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| appId | Yes | appId for app |
Implementation Reference
- src/tools.ts:208-232 (registration)Registration of the tool 'ethora-app-get-default-rooms-with-app-id', including input schema (appId: string) and inline handler function that calls the API helper appGetDefaultRoomsWithAppId(appId) and returns the JSON result or error.function getDefaultRoomsWithAppIdTool(server: McpServer) { server.registerTool( 'ethora-app-get-default-rooms-with-app-id', { description: 'Get the default rooms for the application by appId. You should have read access to the application.', inputSchema: { appId: z.string().describe("appId for app"), } }, async function ({ appId }) { try { let result = await appGetDefaultRoomsWithAppId(appId) let toolRes: CallToolResult = { content: [{ type: "text", text: JSON.stringify(result.data) }] } return toolRes } catch (error) { let toolRes: CallToolResult = { content: [{ type: "text", text: "error: network error" }] } return toolRes } } ) }
- src/apiClientDappros.ts:151-155 (helper)Helper function that makes the HTTP GET request to the Ethora API endpoint `/apps/get-default-rooms/app-id/${appId}` to fetch default rooms for the given appId.export function appGetDefaultRoomsWithAppId(appId: string) { return httpClientDappros.get( `/apps/get-default-rooms/app-id/${appId}` ) }
- src/tools.ts:349-349 (registration)Invocation of the tool registration function within the main registerTools export.getDefaultRoomsWithAppIdTool(server);