Skip to main content
Glama

create_directory

Creates one or more directories at a specified path, including parent folders when needed.

Instructions

Create one or more directories (like mkdir -p).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYesRelative or absolute path to the directory.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

No annotations are provided, so the description carries the full burden. The mkdir -p analogy discloses recursive creation and idempotency (to those familiar with the command), but it omits edge cases such as behavior when the directory already exists or when the path is invalid.

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 sentence, highly concise and front-loaded with the core action. No unnecessary words or repetition.

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 simple one-parameter tool with an output schema, the description is nearly complete. It covers the main functionality and behavior, leaving only minor gaps around failure conditions and the exact interpretation of 'one or more'.

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?

The schema already documents the path parameter at 100% coverage, setting a baseline of 3. The description adds meaning by clarifying that a single path can create one or more directories (via intermediate parents), though the phrasing 'one or more' is slightly ambiguous with a single string parameter.

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 action (create) and resource (directories), with a useful mkdir -p analogy that conveys recursive creation. This distinguishes it from sibling tools like delete_path or list_directory.

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?

The description implies the tool is for creating directory structures but provides no explicit guidance on when to use it versus alternatives (e.g., write_file for files) or when not to use it. No exclusions or alternative references are given.

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/pranjal2410719/dev-mcp'

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