Skip to main content
Glama

workspace_mkdir

Idempotent

Creates a directory and any missing parent folders, then reports whether it was created or already exists. Use it to prepare workspace paths before builds or file operations.

Instructions

Create a directory and missing parents, or report that it already exists.

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

Input Schema

NameRequiredDescriptionDefault
pathYes

Output Schema

NameRequiredDescriptionDefault
pathYes
actionYes
sourceNo
resourcesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.5.1
    • addedInput schema / additionalProperties
      Added value: +false
  2. Addedv0.2.2

TDQS

A3.5/5.0
Behavior4/5

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

Annotations already declare idempotentHint=true, destructiveHint=false and non-readOnly, so the safety profile is covered; the description adds genuinely new behavior by stating that missing parents are created and that an existing directory is reported rather than erroring. It omits failure modes such as the path existing as a file or lacking permissions, which keeps it short of a 5.

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?

One sentence, front-loaded with the primary action and followed by the two secondary behaviors (parent creation, already-exists reporting). No filler, no restatement of the tool name.

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?

The tool is simple, annotations are rich, and an output schema exists so return values need not be described. However, with a single required path argument fully undocumented, the definition leaves the agent guessing about path resolution, which is a real gap for a directory-creation call.

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% – the single `path` parameter has no description at all. The description does not compensate by clarifying whether the path is absolute or relative to the workspace root, or how separators are handled, which is exactly the ambiguity that matters for a filesystem tool.

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 names a specific verb and resource ("Create a directory") plus the parent-recursion semantics, so an agent can immediately tell this is the mkdir-style operation. It does not need to differentiate from siblings because none of the listed workspace_* tools creates directories, though it never says so explicitly.

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?

Usage is only implied: one can infer this should be called before workspace_write_file into a non-existent folder, but the description never states when to use it or whether other tools (e.g. write/move) already create parents. No exclusions or alternatives are named.

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