Skip to main content
Glama

get_workspaces_basic_info

Retrieve essential workspace details from Carbon Voice to access conversations and voice memos.

Instructions

Get basic information about a workspace.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Handler function that executes the tool logic by calling the generated simplified API method getAllWorkspacesWithBasicInfo with authentication header and formats the result.
    async (params: unknown, { authInfo }): Promise<McpToolResponse> => { try { return formatToMCPToolResponse( await simplifiedApi.getAllWorkspacesWithBasicInfo( setCarbonVoiceAuthHeader(authInfo?.token), ), ); } catch (error) { logger.error('Error getting workspaces basic info:', { error }); return formatToMCPToolResponse(error); } },
  • src/server.ts:805-827 (registration)
    Registration of the MCP tool 'get_workspaces_basic_info' with empty input schema and read-only annotation, including the inline handler.
    server.registerTool( 'get_workspaces_basic_info', { description: 'Get basic information about a workspace.', inputSchema: z.object({}).shape, annotations: { readOnlyHint: true, destructiveHint: false, }, }, async (params: unknown, { authInfo }): Promise<McpToolResponse> => { try { return formatToMCPToolResponse( await simplifiedApi.getAllWorkspacesWithBasicInfo( setCarbonVoiceAuthHeader(authInfo?.token), ), ); } catch (error) { logger.error('Error getting workspaces basic info:', { error }); return formatToMCPToolResponse(error); } }, );
  • Generated helper function in the simplified API client that performs the HTTP GET request to retrieve basic workspace information.
    const getAllWorkspacesWithBasicInfo = ( options?: SecondParameter<typeof mutator>, ) => { return mutator<WorkspaceBasicInfo[]>( { url: `/simplified/workspaces/basic-info`, method: 'GET' }, options, ); };
  • TypeScript type definition for the output of the getAllWorkspacesWithBasicInfo API call, used for type safety.
    export type GetAllWorkspacesWithBasicInfoResult = NonNullable< Awaited< ReturnType< ReturnType< typeof getCarbonVoiceSimplifiedAPI >['getAllWorkspacesWithBasicInfo'] > > >;

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/PhononX/cv-mcp-server'

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