Skip to main content
Glama
PhononX

Carbon Voice

by PhononX

get_conversation

Read-only

Retrieve a specific conversation by its ID to access messages and voice memos from Carbon Voice.

Instructions

Get a conversation by its ID.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYes

Implementation Reference

  • src/server.ts:437-460 (registration)
    Registration of the MCP tool 'get_conversation', including description, input schema, and the handler function that executes the logic by calling the simplified Carbon Voice API to fetch the conversation by ID.
    server.registerTool(
      'get_conversation',
      {
        description: 'Get a conversation by its ID.',
        inputSchema: getConversationByIdParams.shape,
        annotations: {
          readOnlyHint: true,
          destructiveHint: false,
        },
      },
      async (args: GetByIdParams, { authInfo }): Promise<McpToolResponse> => {
        try {
          return formatToMCPToolResponse(
            await simplifiedApi.getConversationById(
              args.id,
              setCarbonVoiceAuthHeader(authInfo?.token),
            ),
          );
        } catch (error) {
          logger.error('Error getting conversation by id:', { error });
          return formatToMCPToolResponse(error);
        }
      },
    );
  • The handler function for the 'get_conversation' tool, which takes conversation ID, authenticates, calls the API, formats response or error.
    async (args: GetByIdParams, { authInfo }): Promise<McpToolResponse> => {
      try {
        return formatToMCPToolResponse(
          await simplifiedApi.getConversationById(
            args.id,
            setCarbonVoiceAuthHeader(authInfo?.token),
          ),
        );
      } catch (error) {
        logger.error('Error getting conversation by id:', { error });
        return formatToMCPToolResponse(error);
      }
    },
  • Zod schema definition for the input parameters of getConversationById, used as inputSchema: getConversationByIdParams.shape in the tool registration. Requires a conversation 'id' string.
    export const getConversationByIdParams = zod.object({
      "id": zod.string()
    })
  • Helper function getConversationById from the generated Carbon Voice Simplified API wrapper, which performs the actual HTTP GET request to retrieve conversation details by ID.
    const getConversationById = (
      id: string,
      options?: SecondParameter<typeof mutator>,
    ) => {
      return mutator<Conversation>(
        { url: `/simplified/conversations/${id}`, method: 'GET' },
        options,
      );
    };
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnlyHint=true and destructiveHint=false, so the agent knows this is a safe read operation. The description adds no behavioral context beyond this, such as error handling, permissions, or rate limits, but it doesn't contradict the annotations either.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, clear sentence with no wasted words, making it highly efficient and front-loaded. Every word contributes directly to understanding the tool's purpose.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's low complexity (1 parameter, no output schema) and annotations covering safety, the description is minimally adequate. However, it lacks details on return values or error cases, which could be helpful despite the annotations.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 0% schema description coverage and 1 parameter, the description doesn't add any semantic details about the 'id' parameter (e.g., format, source, or examples). However, the baseline is 3 since the schema fully defines the parameter, and the description doesn't need to compensate for gaps.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the verb ('Get') and resource ('a conversation by its ID'), making the purpose immediately understandable. However, it doesn't distinguish this tool from similar siblings like 'get_conversation_users' or 'get_message', which also retrieve conversation-related data, so it doesn't reach the highest score.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus alternatives. With siblings like 'list_conversations' for multiple conversations and 'get_message' for individual messages, the agent must infer usage from the name alone, which is insufficient for optimal tool selection.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

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

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