Skip to main content
Glama
MCP Filesystem Server

MCP Filesystem Server

by pocho23

create_directory

Creates a new directory at a specified path within allowed filesystem locations so users can organize files in permitted folders.

Instructions

Create a new directory in allowed locations

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_directory"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesPath to the directory to create

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden, and it only hints at a sandbox/permission restriction via 'allowed locations'. It omits whether the call fails when the directory exists, whether intermediate parents are created, whether it is idempotent, and what errors or results to expect from this mutation.

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?

A single front-loaded sentence with zero wasted wording. Its brevity is efficient, though it reflects under-specification rather than deliberate density.

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

Completeness2/5

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

For a filesystem mutation with no annotations and no output schema, an agent still lacks existence-conflict behavior, parent-directory handling, and failure modes. Given the tool's simplicity a short sentence is defensible, but the critical mutation semantics are absent.

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% and the single path parameter is fully documented in the schema, so baseline 3 applies. The description's only added nuance is the 'allowed locations' constraint, which is relevant but not tied specifically to the path parameter.

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 new directory') plus a scope qualifier ('in allowed locations'), which clearly separates it from siblings like list_directory, read_file, and delete_file. It stops short of explicitly naming an alternative, but the operation is unambiguous.

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?

There is no guidance on when to use this versus write_file or how it relates to existing directories. 'In allowed locations' is a constraint, not a usage rule, and the description never explains what qualifies as allowed or what to do if the path already exists.

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