Skip to main content
Glama

create_directory

Create directories and nested folder structures, automatically generating all missing parent directories. Use for setting up project layouts and organizing files.

Instructions

CREATE NEW DIRECTORIES and folder structures. Automatically creates all parent directories (like 'mkdir -p'). Use for creating folders, setting up directory structures, organizing project layout. Keywords: create directory, mkdir, make folder, new folder. / 创建新目录和文件夹结构。自动创建所有父目录(类似 'mkdir -p')。关键词:创建目录、新建文件夹。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYesThe directory path to create. Can be absolute or relative. Supports nested paths - all parent directories will be created automatically. Examples: 'src/utils' (creates src/ and src/utils/), '/tmp/mydir' (absolute path), 'docs/api/v1' (creates docs/, docs/api/, and docs/api/v1/).

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
messageYes
successYes
Behavior4/5

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

With no annotations provided, the description carries the full burden. It discloses the critical behavior 'Automatically creates all parent directories (like 'mkdir -p')', which is non-obvious and important for the agent to know. It does not mention edge cases like existing directories or permissions, but the core behavior is well-covered.

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

Conciseness3/5

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

The description is front-loaded but contains redundancy: the first sentence and the 'Use for' section overlap in meaning. The keywords list and Chinese translation are nice for search/localization but add length without contributing new conceptual information. It is not overly long but could be tighter.

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?

The tool is simple (1 param, output schema provided). The description covers the main purpose, key behavior, and use cases well. It lacks details on error handling or idempotency, but for a basic create-directory tool the description is sufficiently 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 description coverage is 100% (as noted in context signals), and the schema already explains the 'path' parameter clearly with examples and behavior. The tool description adds no extra parameter detail beyond what the schema provides, so a baseline score of 3 is appropriate.

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 verb and resource: 'CREATE NEW DIRECTORIES and folder structures.' It also specifies the key behavior of automatically creating parent directories, which distinguishes it from sibling tools like create_file. The purpose is unmistakable and differentiates well.

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 provides explicit use cases: 'Use for creating folders, setting up directory structures, organizing project layout.' This gives clear when-to-use guidance, though it does not explicitly mention when not to use it or name alternative tools. Context from siblings implies the distinction, so it's clear but not exhaustive.

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/shibingli/mcp-toolkit'

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