Skip to main content
Glama

Turn subfolders on or off

set_subfolders_enabled
Idempotent

Turn subfolders on or off for a folder (off by default). Turning them off ungroups the documents (they go back to the top of the folder, nothing is deleted) and deletes the subfolders.

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>",
      "enabled": "<enabled>"
    },
    "name": "set_subfolders_enabled"
  }
}

Input Schema

NameRequiredDescriptionDefault
enabledYes
folder_idYesFolder id (from list_folders)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.7/5.0
Behavior4/5

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

With readOnlyHint=false and destructiveHint=false already declaring the safety profile, the description earns credit for disclosing the actual consequences: documents are ungrouped back to the folder top, nothing is deleted, and the subfolder containers are removed. That last point is in mild tension with destructiveHint=false, but the description is the more informative source and clarifies that no documents are lost.

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?

Two compact sentences: the action and default are front-loaded, then the consequences of turning off are packed into a single well-ordered clause. The opening clause largely restates the title, which is mildly redundant but not costly.

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 two-parameter toggle with no output schema and annotations covering safety and idempotency, the description supplies the key consequence model an agent needs. The main gap is the re-enable path — whether subfolders are recreated or documents re-grouped — which is relevant for a tool with idempotentHint=true.

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 50%: folder_id is documented inline ("from list_folders") while enabled is undocumented in the schema. The description partially compensates by giving the default value of enabled ("off by default"), but adds nothing about folder_id or what a failed/duplicate toggle does. Baseline 3 fits given the split coverage.

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 ("Turn subfolders on or off for a folder") with the target scope being a single folder, which implicitly separates it from the room-level sibling set_room_folders_enabled. It stops short of explicitly naming the folder-scoped vs room-scoped distinction, so an agent must infer the routing from the sibling's name.

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

Usage Guidelines3/5

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

The parenthetical "(off by default)" tells the agent the starting state, which is useful context for when to call it. There is no statement of preconditions, no explicit "use this instead of X", and no guidance on what happens when re-enabling, so usage is implied rather than directed.

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