Skip to main content
Glama

create_directory_tool

Creates a new directory at the given absolute or relative path and generates missing parent directories. Use it to prepare storage locations or organize files before writing.

Instructions

Create a new directory (creates parent directories if needed)

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": "create_directory_tool"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesAbsolute or relative path to the directory

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose one important behavior: missing parent directories are created automatically. However, it is silent on what happens when the target directory already exists (error vs silent success), which is the key ambiguity for a create operation, and says nothing about permissions or side 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?

A single short sentence with the core action front-loaded and the parent-creation caveat parenthesized rather than buried. No wasted wording.

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 one-parameter tool whose schema is fully described and which has no output schema, this covers nearly everything needed to invoke it correctly. The remaining gap is the already-exists case, which for a creation tool is worth one more sentence.

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?

Only one parameter exists and the schema already documents it at 100% coverage ("Absolute or relative path to the directory"). The description adds no extra meaning such as whether relative paths resolve against a workspace root or how trailing separators are treated, so 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 a new directory") and adds the non-trivial mkdir -p behavior in parentheses. It does not name or distinguish itself from siblings like delete_directory_tool or list_directory_tool, so it falls short of a 5.

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?

There is no guidance on when to use this tool versus alternatives, nor any prerequisites such as required permissions or the working-directory base for relative paths. "Creates parent directories if needed" is a behavioral note, not usage routing.

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