Skip to main content
Glama
PhononX

Carbon Voice

by PhononX

create_folder

Create a new folder in Carbon Voice to organize voice memos or prerecorded content within a workspace, specifying parent folder for hierarchical structure.

Instructions

Create a new folder.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesName of the Folder
typeYesFolder type
workspace_idYesWorkspace ID
parent_folder_idNoParent Folder ID

Implementation Reference

  • src/server.ts:614-637 (registration)
    Registration of the MCP 'create_folder' tool, including inline handler that calls the simplified API and schema reference.
    server.registerTool(
      'create_folder',
      {
        description: 'Create a new folder.',
        inputSchema: createFolderBody.shape,
        annotations: {
          readOnlyHint: false,
          destructiveHint: false,
        },
      },
      async (args: CreateFolderPayload, { authInfo }): Promise<McpToolResponse> => {
        try {
          return formatToMCPToolResponse(
            await simplifiedApi.createFolder(
              args,
              setCarbonVoiceAuthHeader(authInfo?.token),
            ),
          );
        } catch (error) {
          logger.error('Error creating folder:', { error });
          return formatToMCPToolResponse(error);
        }
      },
    );
  • Handler function for 'create_folder' tool: authenticates and delegates to simplifiedApi.createFolder, formats response.
    async (args: CreateFolderPayload, { authInfo }): Promise<McpToolResponse> => {
      try {
        return formatToMCPToolResponse(
          await simplifiedApi.createFolder(
            args,
            setCarbonVoiceAuthHeader(authInfo?.token),
          ),
        );
      } catch (error) {
        logger.error('Error creating folder:', { error });
        return formatToMCPToolResponse(error);
      }
    },
  • Zod schema definition for create_folder input: name, type (voicememo/prerecorded), workspace_id, optional parent_folder_id.
    export const createFolderBody = zod.object({
      "name": zod.string().describe('Name of the Folder'),
      "type": zod.enum(['voicememo', 'prerecorded']).describe('Folder type'),
      "workspace_id": zod.string().describe('Workspace ID'),
      "parent_folder_id": zod.string().optional().describe('Parent Folder ID')
    })
  • Generated API client function simplifiedApi.createFolder: POST /simplified/folders with payload.
    const createFolder = (
      createFolderPayload: CreateFolderPayload,
      options?: SecondParameter<typeof mutator>,
    ) => {
      return mutator<Folder>(
        {
          url: `/simplified/folders`,
          method: 'POST',
          headers: { 'Content-Type': 'application/json' },
          data: createFolderPayload,
        },
        options,
      );
    };
  • TypeScript interface matching the create_folder payload schema.
    export interface CreateFolderPayload {
      /** Name of the Folder */
      name: string;
      /** Folder type */
      type: CreateFolderPayloadType;
Behavior3/5

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

Annotations indicate this is a non-destructive write operation (readOnlyHint=false, destructiveHint=false), which the description doesn't contradict. However, the description adds minimal behavioral context beyond what annotations provide—it doesn't mention permissions needed, rate limits, or what happens when creating duplicate folders, leaving room for improvement.

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, efficient sentence with zero wasted words. It's front-loaded with the core action and resource, making it easy to parse quickly, which is ideal for conciseness.

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 moderate complexity (4 parameters, no output schema) and rich annotations, the description is minimally adequate. It covers the basic purpose but lacks details on usage context, parameter nuances, or behavioral traits that would make it more complete for an AI agent.

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?

Schema description coverage is 100%, so parameters are well-documented in the schema itself. The description adds no additional meaning about parameters, such as explaining the 'type' enum options ('voicememo' vs 'prerecorded') or how 'parent_folder_id' affects folder hierarchy. This meets the baseline for high schema coverage.

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 action ('create') and resource ('folder'), making the purpose immediately understandable. However, it doesn't differentiate this tool from its sibling 'update_folder_name' or explain how it relates to other folder operations like 'move_folder' or 'delete_folder', which prevents a perfect 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. It doesn't mention prerequisites (like needing a workspace_id), when not to use it, or how it compares to sibling tools like 'update_folder_name' for modifying existing folders.

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