Skip to main content
Glama

folder_create

Idempotent

Create empty folders, including any missing parent levels, in one call when a workspace layout or output folder must exist before files. Existing folders are reported, not treated as errors.

Instructions

Creates one or more empty folders in a workspace, with any missing parent folders, in one call. A folder that already exists is reported as such, not as an error. WHEN TO USE: only for folders that must exist before any file is in them (a layout to fill later, an output folder a tool expects). file_write and file_move already create the parent folders they need, so do not call this first. To rename or move a folder use folder_move; to remove one use folder_delete. Each path is handled on its own: a path that is already a file, outside the workspace or blocked by the access rules fails alone and the others are still created. At most 50 paths per call. RETURNS: one line per path: created, already existed, or the error.

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": {
      "workspace": "<workspace>",
      "pathsJson": "<pathsJson>"
    },
    "name": "folder_create"
  }
}

Input Schema

NameRequiredDescriptionDefault
guideNotrue: put the files guide first in the result. Use on your first files call, or when told it changed.
pathsJsonYesJSON array of folder paths relative to the workspace root, '/' as separator. A nested path creates every level, so ["Features/Orders/Models"] alone is enough for three folders.
workspaceYesWorkspace name as shown in Waymark (a single workspace; '*' is not accepted)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.2.2
    • changedInput schema / properties / pathsJson / description
      Previous value: -"JSON array of relative folder paths to create:\n  [\"Features/Orders\", \"Features/Orders/Models\"]"New value: +"JSON array of folder paths relative to the workspace root, '/' as separator. A nested path creates every level, so [\"Features/Orders/Models\"] alone is enough for three folders."
  2. Addedv0.2.1

TDQS

A4.9/5.0
Behavior5/5

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

Beyond the annotations (non-read-only, idempotent, non-destructive) it discloses partial-failure semantics per path, that an existing folder is reported rather than raised as an error, the 50-path cap, and the one-line-per-path return shape. Those are the exact behaviors an agent needs to batch correctly and interpret results, none of which the annotations convey.

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?

Purpose first, then a labeled WHEN TO USE block with exclusions and alternatives, then failure semantics, then RETURNS. Every sentence carries a distinct constraint or routing decision; there is no repetition of the name or filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

No output schema exists, yet the description explains the return value (one line per path: created, already existed, or the error). For a 3-parameter, non-destructive batch tool this covers creation, batching, failure isolation, and return interpretation with no material gaps.

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?

Schema coverage is 100%, so the baseline is 3, and the description adds a call-level constraint the schema lacks ('At most 50 paths per call') plus confirmation that a nested path covers all levels in one entry. The workspace and guide parameters are left entirely to the schema, so it stops short of full compensation.

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?

States a specific verb and resource ('Creates one or more empty folders in a workspace, with any missing parent folders, in one call'), including the implicit-parent behavior that distinguishes it from a generic mkdir. An agent can tell exactly what this produces without opening the schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly scopes usage to folders that must pre-exist, and explicitly warns not to call it before file_write/file_move because those already create parents. It also routes adjacent intents to folder_move for rename/move and folder_delete for removal, so both the when and the when-not are covered.

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