Skip to main content
Glama
dappros
by dappros

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
NameRequiredDescriptionDefault
appIdYesappId 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 } } ) }
  • 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);

Other Tools

Related Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/dappros/ethora-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server