Skip to main content
Glama
eva-wanxin-git

Windows Automation MCP Server

create_directory

Create new directories on Windows systems to organize files and manage storage structure. Specify the path where the directory should be created.

Instructions

创建目录

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYes目录路径

Implementation Reference

  • The handler function that creates the directory using fs.mkdir with recursive option and returns success/error response.
    async createDirectory(dirPath) {
      try {
        await fs.mkdir(dirPath, { recursive: true });
        return { success: true, path: dirPath, message: '目录创建成功' };
      } catch (error) {
        return { success: false, error: error.message };
      }
    }
  • Tool definition including name, description, and input schema for the create_directory tool.
    {
      name: 'create_directory',
      description: '创建目录',
      inputSchema: {
        type: 'object',
        properties: {
          path: { type: 'string', description: '目录路径' },
        },
        required: ['path'],
      },
    },
  • Registration in the executeTool switch statement dispatching to the createDirectory handler.
    case 'create_directory':
      return await this.createDirectory(args.path);
  • Inclusion in the canHandle tools array for checking if the tool can be handled.
    const tools = ['read_file', 'write_file', 'list_directory', 'create_directory', 
                   'delete_file', 'copy_file', 'move_file', 'search_files'];

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

D1.9/5.0
Behavior2/5

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

No annotations are provided, and the description fails to disclose behavioral traits such as whether parent directories are created, what happens if the directory already exists, or required permissions. This is a significant gap for a mutation tool.

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

Conciseness2/5

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

The description is extremely concise (two characters) but lacks structure and does not front-load key information. It is underspecified, not efficiently informative.

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

Completeness2/5

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

For a simple tool with one parameter and no output schema, the description should at least mention behavior on success, failure, or conflicts. The current description is incomplete, leaving the agent without critical context.

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?

The input schema has 100% description coverage for the single parameter 'path' (described as '目录路径'). However, the tool description adds no additional meaning beyond what the schema already provides, so the baseline score of 3 is appropriate.

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

Purpose1/5

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

The description '创建目录' is a direct translation of the tool name 'create_directory', providing no additional information. It is a tautology that restates the name without explaining the action or distinguishing it from sibling tools like 'create_file'.

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?

No guidance is given on when to use this tool versus alternatives such as 'create_file' or 'batch_create_files'. The description lacks context for usage scenarios or exclusions.

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