Skip to main content
Glama

create_folder

Create a folder in a project or knowledge base to organize content, including nested paths. Idempotent: existing folders succeed, invalid names are rejected.

Instructions

Create a folder under a project root or the KB. Idempotent — creating an existing folder succeeds. Nested paths like notes/inbox create intermediates. REJECTS: empty names, null bytes, leading path separators, and any segment equal to .. (the call returns isError, no folder is touched). Side effect: a directory is mkdir'd on disk; no DB rows are written until a file lands inside. No external auth or rate limits. Returns {path, base_path}.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesFolder name (relative; supports nested paths via '/')
project_idNoProject ID. Pass null or omit to create the folder under the KB.
Behavior5/5

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

With no annotations, the description carries the full burden and delivers: idempotency, rejection criteria (empty names, null bytes, leading separators, '..'), side effects (disk mkdir, no DB rows until file lands), and no external auth/rate limits. This is exceptionally transparent about behavior and consequences.

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?

The description is appropriately sized, front-loading the primary purpose in the first sentence. Every subsequent sentence adds crucial operational details (idempotency, rejections, side effects, return value) without redundancy or fluff.

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?

Despite no output schema, the description discloses the return shape ({path, base_path}) and covers edge cases, side effects, and constraints. It is complete enough for an agent to invoke confidently without additional documentation.

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

Parameters4/5

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

Schema coverage is 100%, so baseline is 3. The description adds value by clarifying nested path behavior ('notes/inbox' creates intermediates), which enriches the 'name' parameter beyond its schema description. It also implies project_id semantics ('project root vs KB'), adding contextual meaning.

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 'Create a folder under a project root or the KB', with a specific verb (create) and resource (folder), and distinguishes it from siblings like create_file and delete_folder. The mention of idempotency and nested path handling further clarifies scope.

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?

It provides clear context for when to use the tool (under a project root or KB, with nested path support) but does not explicitly contrast with alternatives like create_files. The idempotent behavior and rejection cases implicitly guide usage, though no explicit 'use this instead of X' statement exists.

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/safiyu/kontexta'

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