Skip to main content
Glama

Create a folder

create_folder

Creates an empty folder (an address segment such as /services; a folder is not a file), kept in .xodia/folders.json so it shows in the Pages panel and the plan before any page is in it. Folders that pages or collections use exist without this. Addresses are lowercase words with dashes, up to 5 folder levels; an address another page, folder or collection uses is refused with address_clash and the reason (a collection's item level, /blog/, belongs to its items unless the collection reserves that slug). Saved at once, like every edit in Xodia; pushing to Git and publishing stay the user's.

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

Input Schema

NameRequiredDescriptionDefault
nameNoIts name in Studio and the default menu label; default from the slug
pathYesThe folder's address ("services", or "services/web" inside services)
branchNoOptional branch; default the branch the workspace has open
projectIdYesProject id from list_projects

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Goes well beyond the non-destructive, non-open-world annotations: it discloses persistence ('kept in .xodia/folders.json'), the visible side effect ('shows in the Pages panel and the plan'), error behavior ('refused with address_clash and the reason'), save timing ('Saved at once, like every edit'), and explicit non-effects ('pushing to Git and publishing stay the user's'). That is exactly the mutation context an agent needs.

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?

Front-loaded with the definition and the 'not a file' distinction, and every clause carries new information about storage, constraints, or errors. It is a dense, long running sentence chain that could be broken into shorter sentences for easier scanning, but nothing is padding.

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?

For a 4-parameter create tool with no output schema, the description covers what is created, where it is stored, validation limits, failure mode, and the boundary between auto-save and Git/publish. It never states what the call returns (folder object, id, or nothing), which is the one remaining gap for an agent chaining subsequent calls.

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, but the description adds real constraints absent from the schema: addresses are lowercase words with dashes, limited to 5 folder levels, and must not collide with an existing page, folder, or collection (including a collection's /blog/<slug> item level). It does not touch name, branch, or projectId, which the schema already documents.

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?

States a specific verb and resource ('Creates an empty folder') and immediately disambiguates it from overlapping concepts: 'an address segment such as /services; a folder is not a file'. It also distinguishes from page/collection-implied folders in the next sentence, so an agent can separate this from create_page or create_collection without opening a schema.

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?

Gives an explicit when-not-to-use rule: 'Folders that pages or collections use exist without this', which prevents redundant calls. It does not name a sibling alternative for the cases where this tool is wrong (e.g. creating a page or collection instead), so it stops short of full routing guidance.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources