Skip to main content
Glama
GeminiDesk MCP
by LZ7TOP

Create Directory

fs_create_directory

Creates folders and builds missing parent directories recursively, with an optional permission mode for access control. Use it to set up directory structures on local systems.

Instructions

创建文件夹,默认支持递归创建多级父目录,可选指定权限。

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "path": "<path>"
    },
    "name": "fs_create_directory"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNo可选文件夹权限(八进制字符串,如 "755")
pathYes要创建的文件夹路径
recursiveNo是否递归创建父目录

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

B3.4/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It discloses that recursive parent creation is the default and that permissions can optionally be set, which is useful behavioral context, but it omits critical traits for a filesystem mutation: behavior when the target already exists (error vs. no-op), required permissions, and whether partial creation can occur on failure.

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

Conciseness4/5

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

A single compact sentence that front-loads the action and then adds the two distinguishing behaviors. There is no filler, though the comma-chained clauses make it slightly less scannable than separate statements would be.

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?

For a three-parameter mutation tool with no annotations and no output schema, the definition covers the essentials of what it creates and how, but leaves the caller without guidance on existing-directory behavior, failure modes, or permission requirements. Adequate, not complete.

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 coverage is 100%, so the schema already documents path, recursive (default true), and mode with an octal example. The description restates the recursive default and the optional permission without adding format details, constraints, or interaction rules beyond the schema; baseline 3 applies.

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 states a specific verb and resource (创建文件夹 / create folder) and notes the recursive and permission aspects, so the agent can tell it apart from siblings like fs_copy, fs_move_or_rename, or fs_delete. It stops short of naming an alternative explicitly, but the operation is unambiguous.

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

Usage Guidelines3/5

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

Usage is only implied: the agent can infer this is the tool for creating a new directory rather than listing or modifying one. There is no explicit when-to-use guidance, no mention of what to do if the path already exists, and no routing to alternatives such as fs_chmod for permission-only changes.

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