Skip to main content
Glama

create_directory

Creates a directory plus any missing parent folders, and succeeds if that path already exists.

Instructions

Create a directory and any missing parents. Succeeds if it already exists.

Input Schema

NameRequiredDescriptionDefault
pathYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.1

TDQS

C2.9/5.0
Behavior2/5

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

The description does add real behavior beyond the annotations – recursive parent creation and no error on an existing directory. However, 'succeeds if it already exists' effectively describes an idempotent no-op, while the annotations declare idempotentHint=false; that is a genuine, if low-harm, inconsistency. It also omits what happens if the path exists as a file, and any permission or path-resolution behavior, which matters for a mutating tool with no output explanation needed.

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?

Two short sentences, zero filler, with the most consequential behavior (parent creation) front-loaded. Nothing is redundant.

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?

An output schema exists, so return values need not be described. Still, for a filesystem mutation the description omits error conditions (path exists as file, permission denied) and path resolution rules, which an agent needs in order to call it correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% for the single parameter; the schema only names it 'path' with no description. The tool description adds nothing about path syntax, relative vs. absolute resolution, or trailing separators, so semantics of the one input are left entirely to guessing.

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?

Specific verb (create) plus resource (directory) with an extra scope qualifier: it also creates missing parents. That distinguishes it from create_file and from move_path/copy_path, which require an existing source. The only gap is that the description never says what the path is relative to (workspace vs. absolute filesystem).

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?

No guidance on when to prefer this over siblings such as create_file (which may or may not create parent directories) or move_path. No prerequisites or exclusions are stated, so the agent must infer usage purely from the verb.

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