Skip to main content
Glama

Create a subfolder

create_subfolder

Create a subfolder in a folder to group its documents. One level only: a subfolder holds documents, never other subfolders. Subfolders are off by default – turn them on for the folder first (set_subfolders_enabled, or "Use subfolders to group files" in the folder settings).

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": {
      "folder_id": "<folder_id>",
      "name": "<name>"
    },
    "name": "create_subfolder"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYes
folder_idYesFolder id (from list_folders)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false, idempotentHint=false, and openWorldHint=false. The description adds meaningful context beyond those flags: the one-level nesting limit, the fact that subfolders must be enabled first, and the grouping intent. It does not describe error behavior when subfolders are disabled or what happens on duplicate names, but the core behavioral constraints are well disclosed.

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?

Three short sentences with no wasted words. The core action is front-loaded, followed by the one-level constraint and then the prerequisite, which is a logical order for an agent reading top-down.

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?

Complete enough for a two-parameter creation tool: it covers purpose, nesting limits, and the enabling prerequisite, while annotations carry the safety profile. It lacks return-value information (no output schema exists) and does not state what happens if the folder is not enabled or the name collides, which are reasonable gaps but not fatal for correct invocation.

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 description coverage is 50%: folder_id is documented in the schema as coming from list_folders, while name only has a maxLength constraint. The description adds little parameter-specific meaning beyond implies 'in a folder' corresponds to folder_id. With schema covering half the parameters, a baseline 3 is appropriate.

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 ('Create a subfolder in a folder') plus the purpose ('to group its documents'), and adds the critical scope constraint that subfolders are one level only and never contain other subfolders. An agent can distinguish this from sibling tools like create_room_folder or set_subfolders_enabled without opening any 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?

Explicitly gives the prerequisite: subfolders are off by default, so set_subfolders_enabled (or the UI setting) must be used first. It explains the intended use case ('group its documents') but does not name alternatives for other grouping operations or state when not to use this tool; still, the prerequisite guidance is clear and actionable.

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