Skip to main content
Glama
PhononX

Carbon Voice

by PhononX

get_ai_action_responses

Retrieve AI-generated responses by filtering for specific prompts, messages, or conversations to review previous interactions and outputs.

Instructions

Retrieve previously generated AI Action (Prompt) responses by filtering for a specific prompt, message, or conversation ID. Combine filters to narrow results and view all AI-generated responses related to a particular prompt, message, or conversation.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
message_idNo
prompt_idNo
channel_idNo
limitNo
directionNo
dateNo

Implementation Reference

  • The inline handler function that executes the 'get_ai_action_responses' tool logic by calling the Carbon Voice simplified API to retrieve AI action responses based on provided parameters.
    async (
      args: AIResponseControllerGetAllResponsesParams,
      { authInfo },
    ): Promise<McpToolResponse> => {
      try {
        return formatToMCPToolResponse(
          await simplifiedApi.aIResponseControllerGetAllResponses(
            args,
            setCarbonVoiceAuthHeader(authInfo?.token),
          ),
        );
      } catch (error) {
        logger.error('Error getting ai action responses:', { error });
        return formatToMCPToolResponse(error);
      }
    },
  • TypeScript type definition for the input parameters of the 'get_ai_action_responses' tool, used for validation and typing.
    export type AIResponseControllerGetAllResponsesParams = {
      message_id?: string;
      prompt_id?: string;
      channel_id?: string;
      limit?: number;
      direction?: AIResponseControllerGetAllResponsesDirection;
      date?: string;
    };
  • src/server.ts:917-928 (registration)
    MCP server registration of the 'get_ai_action_responses' tool, including description, input schema reference, and annotations.
    server.registerTool(
      'get_ai_action_responses',
      {
        description:
          'Retrieve previously generated AI Action (Prompt) responses by filtering for a specific prompt, message, or conversation ID. ' +
          'Combine filters to narrow results and view all AI-generated responses related to a particular prompt, message, or conversation.',
        inputSchema: aIResponseControllerGetAllResponsesQueryParams.shape,
        annotations: {
          readOnlyHint: true,
          destructiveHint: false,
        },
      },

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