Skip to main content
Glama

Create a directory in a sandbox

create_folder

Creates a directory inside a sandbox, including any missing parent directories, and treats an existing directory as success. Requires file.write permission.

Instructions

Create a directory in a sandbox. Missing parent directories are created. An existing directory is not an error. Needs file.write.

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": {
      "sandboxId": "<sandboxId>",
      "path": "<path>"
    },
    "name": "create_folder"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNoOctal permission bits, for example "755".
pathYesMissing parent directories are created.
sandboxIdYesPublic Sandbox id returned by create/list/get sandbox calls.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.0.0

TDQS

B3.2/5.0
Behavior3/5

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

Adds genuinely useful behavior beyond annotations: recursive parent creation and the fact that an existing directory is not an error. It also discloses the required permission scope, which annotations do not convey. However, "an existing directory is not an error" sits in mild tension with idempotentHint=false, and the description never says what the call returns or what happens on permission failure.

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?

Four short, front-loaded sentences with the core action first and prerequisites last, so an agent can stop reading early. The parent-directory sentence repeats schema text rather than adding new information, a minor redundancy.

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 a simple 3-parameter mutation with no output schema, and the description covers the safety-relevant behavior and permission scope. It does not describe the response, so an agent cannot know whether it receives a path, an id, or nothing on success, which is a real gap absent an output schema.

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?

Schema description coverage is 100%, so sandboxId, path, and mode are already documented with constraints and an octal example. The description's only parameter-adjacent statement duplicates the path schema text about parent directories and adds nothing about the mode semantics or path format.

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 and resource ("Create a directory in a sandbox"), which is unambiguous and separable from sandbox lifecycle siblings like create_sandbox. It does not explicitly contrast with file-creation or file-mutation siblings such as replace_in_files, so it stops short of full sibling differentiation.

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?

The only situational cue is the permission requirement "Needs `file.write`" and the implicit assumption that a sandbox must already exist. There is no explicit statement of when to use this versus other file tools, nor any exclusion or alternative routing.

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