Skip to main content
Glama

Create a folder

create_folder
Idempotent

Creates a folder and any missing parent folders in an Overleaf project; does nothing if it already exists and fails if a file occupies that path.

Instructions

Creates a folder, and any missing parent folders, in one project. Does nothing if the folder already exists; fails if a file has that path. Rarely needed: write_file, upload_file and move_file create missing folders themselves. Projects reached through a Git token cannot hold empty folders.

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

Input Schema

NameRequiredDescriptionDefault
pathYesFolder path inside the project, e.g. "figures/plots"
projectNoProject name, id or Overleaf URL. May be omitted when exactly one project is pinned.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv2.1.4
    • addedInput schema / properties / path / description
      Added value: +"Folder path inside the project, e.g. \"figures/plots\""
  2. First observedv2.1.1

TDQS

A4.7/5.0
Behavior5/5

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

Beyond the idempotentHint, the description explains the concrete idempotency behavior ("Does nothing if the folder already exists") and adds an error mode not captured by annotations: it fails if a file occupies the path. The Git-token limitation on empty folders is a real constraint an agent could not infer from structured fields.

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?

Three tight sentences: what it does, its edge-case behavior, and why you probably don't need it. The most agent-relevant warning about redundant use comes after the semantics, which is a defensible ordering given the tool rarely needs calling.

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?

With only two parameters, no output schema, and thin annotations, the description carries the burden well: creation semantics, idempotency, conflict failure, and a project-type limitation are all covered. Nothing needed to call it correctly is missing.

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 both parameters (path, project, including the pinned-project omission rule) are already documented in the schema. The description adds no path syntax or project-resolution detail beyond that, so baseline 3 applies.

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?

The description states a specific verb and resource ("Creates a folder") plus scope detail that matters: it creates missing parent folders and operates on exactly one project. An agent can distinguish this from write_file/upload_file/move_file, which also create folders implicitly.

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?

It explicitly says when NOT to use it — "Rarely needed: write_file, upload_file and move_file create missing folders themselves" — naming the alternatives directly. It also gives the conditions under which the call is a no-op versus a failure.

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