Skip to main content
Glama

get_folder_with_messages

Retrieve a folder and its associated messages by specifying the folder ID. Use this tool to access and organize messages stored in the Carbon Voice MCP server.

Instructions

Get a folder including its messages by its ID. (Only messages at folder level are returned.)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYes

Implementation Reference

  • Handler function that executes the tool logic by calling the simplified API's getFolderMessages method with the provided folder ID and authentication header, formatting the response or error.
    async (args: GetByIdParams, { authInfo }): Promise<McpToolResponse> => { try { return formatToMCPToolResponse( await simplifiedApi.getFolderMessages( args.id, setCarbonVoiceAuthHeader(authInfo?.token), ), ); } catch (error) { logger.error('Error getting folder with messages:', { error }); return formatToMCPToolResponse(error); } },
  • Input schema definition (Zod) for the get_folder_with_messages tool, requiring a folder 'id' string parameter.
    export const getFolderMessagesParams = zod.object({ "id": zod.string() })
  • src/server.ts:665-689 (registration)
    Registration of the 'get_folder_with_messages' MCP tool, including description, input schema reference, annotations, and inline handler.
    server.registerTool( 'get_folder_with_messages', { description: 'Get a folder including its messages by its ID. (Only messages at folder level are returned.)', inputSchema: getFolderMessagesParams.shape, annotations: { readOnlyHint: true, destructiveHint: false, }, }, async (args: GetByIdParams, { authInfo }): Promise<McpToolResponse> => { try { return formatToMCPToolResponse( await simplifiedApi.getFolderMessages( args.id, setCarbonVoiceAuthHeader(authInfo?.token), ), ); } catch (error) { logger.error('Error getting folder with messages:', { error }); return formatToMCPToolResponse(error); } }, );

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