Skip to main content
Glama

files_create_folder

Idempotent

Creates a folder at a specified path in Nextcloud. Optionally creates missing parent folders, returning created false if the folder already exists, or an error if a file is present at the path.

Instructions

Create a folder; an existing folder answers created false, an existing file at the path returns an 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": {
      "path": "<path>"
    },
    "name": "files_create_folder"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesFolder path to create, e.g. /Projects/2026
parentsNoAlso create missing parent folders, at most 10 new ones

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.9.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false, and idempotentHint=true, so the safety profile is covered. The description still earns credit by making those hints concrete: a repeated create returns created=false rather than failing, and a file collision raises an error. It omits permission requirements and the full response shape, so it does not reach 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 action, then the two edge cases in priority order. Nothing is padded or repeated from the schema, and every clause carries new information.

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

Completeness4/5

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

A mutation tool with full annotation coverage and a fully described two-parameter schema needs only the outcome semantics, which are present, including the created flag even though no output schema exists. Only minor gaps remain, such as required permissions or whether the folder is created relative to a root.

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 coverage is 100%, so the path format example and the parents/10-folder limit are already documented in the schema. The description adds no parameter-level detail beyond that; its extra information concerns outcomes, not inputs. With the schema doing all the work, a 3 is the correct baseline.

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?

A specific verb plus resource: 'Create a folder.' The description also sharpens the purpose by contrasting folder creation with an existing file at the path, which implicitly separates it from file-writing siblings such as files_upload. It never names an alternative tool, 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 Guidelines3/5

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

The guidance is only implied: an agent can infer it is for creating directories, and that a pre-existing folder is not an error. There is no explicit when-to-use statement, no mention of prerequisites, and no routing to a different tool for related tasks such as uploading content into the new folder.

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