Skip to main content
Glama

create_directory

Create a new directory with specified owner, group, and permissions. Optionally create missing parent directories.

Instructions

Maak een nieuwe directory en stel eigenaar, groep en Unix-modus in.

Deze tool wijzigt het bestandssysteem. path mag nog niet bestaan en de bovenliggende directory moet onder allowed_write_dirs vallen. owner en group zijn bestaande lokale namen (standaard root); mode is een octale tekenreeks zoals 755 of 0755. Met parents=True worden ontbrekende bovenliggende directories aangemaakt; eigenaar, groep en de opgegeven modus worden alleen expliciet op de doel-directory toegepast. De uitvoerende service moet daarvoor voldoende permissies hebben. Succes retourneert "ok" via {success, data, error, meta}; bestaande paden, onbekende accounts, ongeldige modi, geweigerde paden en ontbrekende permissies leveren een foutresponse op. Gebruik deze tool niet om een bestaande directory of bestandsinhoud te wijzigen.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modeNo755
pathYes
groupNoroot
ownerNoroot
parentsNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior5/5

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

Fully discloses filesystem modification, parameter constraints (valid local names for owner/group, octal mode), permission requirements, and both success and error response formats. With no annotations, the description carries the full burden and meets it excellently.

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?

Well-structured with a clear one-liner followed by explanatory paragraphs. Some redundancy around permission mention, but overall efficient and front-loaded.

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?

Covers all aspects: purpose, parameter details, prerequisites, restrictions, error cases, and return format. The output schema exists, so return value explanation is adequate.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

All five parameters are explained in context beyond the schema, which has 0% coverage. The description clarifies defaults, allowed values, constraints (e.g., path must not exist), and behavior of parents. Adds significant value.

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 clearly states the tool creates a new directory with owner, group, and mode settings. It explicitly contrasts with modifying existing directories, distinguishing it from sibling tools like chmod_file or chown_path.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

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

Provides clear conditions for use (path must not exist, parent under allowed_write_dirs) and warns against using it for modifications. However, it does not explicitly point to alternative tools for other tasks, though the context is sufficient.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/gerard-kanters/mcp-linux-tools'

If you have feedback or need assistance with the MCP directory API, please join our Discord server