Skip to main content
Glama
PhononX

Carbon Voice

by PhononX

delete_folder

Destructive

Remove folders and their contents from Carbon Voice by ID. This action permanently deletes nested folders and all messages within them.

Instructions

Delete a folder by its ID. Deleting a folder will also delete nested folders and all the messages in referenced folders. (This is a destructive action and cannot be undone, so please be careful.)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYes

Implementation Reference

  • src/server.ts:720-745 (registration)
    Registration of the 'delete_folder' MCP tool, including schema reference, annotations (destructive), and handler that invokes simplifiedApi.deleteFolder
    server.registerTool(
      'delete_folder',
      {
        description:
          'Delete a folder by its ID. Deleting a folder will also delete nested folders and all the messages in referenced folders. ' +
          '(This is a destructive action and cannot be undone, so please be careful.)',
        inputSchema: deleteFolderParams.shape,
        annotations: {
          readOnlyHint: false,
          destructiveHint: true,
        },
      },
      async (args: GetByIdParams, { authInfo }): Promise<McpToolResponse> => {
        try {
          return formatToMCPToolResponse(
            await simplifiedApi.deleteFolder(
              args.id,
              setCarbonVoiceAuthHeader(authInfo?.token),
            ),
          );
        } catch (error) {
          logger.error('Error deleting folder:', { error });
          return formatToMCPToolResponse(error);
        }
      },
    );
  • Zod input schema for delete_folder tool: requires a string 'id' for the folder to delete.
    export const deleteFolderParams = zod.object({
      "id": zod.string()
    })
  • Core handler function in generated API that performs the HTTP DELETE request to delete the folder and its contents.
    const deleteFolder = (
      id: string,
      options?: SecondParameter<typeof mutator>,
    ) => {
      return mutator<void>(
        { url: `/simplified/folders/${id}`, method: 'DELETE' },
        options,
      );
    };
Behavior4/5

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

The description adds valuable context beyond annotations: it explains that deletion affects nested folders and messages, and warns that it's irreversible. Annotations already indicate destructiveHint=true and readOnlyHint=false, so the description reinforces this without contradiction, providing extra behavioral insight like cascading effects.

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 front-loaded with the core action, followed by critical details (scope and warning) in a logical flow. Every sentence adds value—no redundancy or fluff—making it efficient and well-structured for quick understanding.

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

Completeness4/5

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

For a destructive tool with no output schema and minimal annotations, the description is fairly complete: it covers purpose, parameter semantics, and behavioral risks. However, it lacks details on error cases or response format, which could be useful given the tool's high-stakes nature.

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

Parameters4/5

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

With 0% schema description coverage and only one parameter ('id'), the description compensates by specifying 'by its ID', clarifying that the parameter is a folder identifier. This adds meaning beyond the bare schema, though it doesn't detail ID format or constraints, keeping it slightly above baseline.

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

Purpose5/5

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

The description clearly states the specific action ('Delete a folder by its ID') and distinguishes it from siblings like 'move_folder' or 'update_folder_name' by emphasizing the permanent removal. It also specifies the scope of deletion (nested folders and messages), making the purpose unambiguous and distinct.

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

Usage Guidelines4/5

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

The description implies usage by specifying 'by its ID' and warning about destructiveness, which helps differentiate from non-destructive siblings like 'get_folder'. However, it does not explicitly state when to use this tool versus alternatives like 'move_folder' for relocation or provide prerequisites, leaving some guidance gaps.

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