Skip to main content
Glama

create_directory

Create a directory and any missing parent directories in the workspace, using a path relative to the workspace root.

Instructions

Create a directory (and any missing parent directories) in the workspace.

Args: path: Directory path to create, relative to the workspace root.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.3/5.0
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 disclosure burden. It does reveal a meaningful behavior — that missing parent directories are created (mkdir -p semantics) — but is silent on what happens if the directory already exists (error vs no-op), permissions, and reversibility.

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?

Two short, front-loaded sentences with no filler; the recursive behavior is stated up front. The trailing Args block is slightly redundant given the sparse schema but is harmless.

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 one-parameter mutation tool with no annotations and no output schema, the description should say what it returns or does on an existing directory. It covers the core behavior and path semantics but leaves idempotency and failure modes unspecified.

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 has 0% description coverage and the single required parameter is a bare string, so the description must compensate. It does add real meaning by specifying the path is relative to the workspace root, though it says nothing about absolute paths or traversal handling.

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?

States a specific verb+resource (create a directory) and adds the recursive parent-creation scope, which is more precise than the bare name. It doesn't explicitly contrast with siblings like directory_exists or list_directory, but the name and description make the operation unambiguous.

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 versus checking directory_exists first, nor any precondition or error-handling context. The agent must infer usage entirely from the tool name.

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