Skip to main content
Glama

Move documents to a subfolder

move_documents_to_subfolder
DestructiveIdempotent

Move documents of a folder into one of its subfolders, or back to the top of the folder (subfolder_id omitted or 0).

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>",
      "document_ids": "<document_ids>"
    },
    "name": "move_documents_to_subfolder"
  }
}

Input Schema

NameRequiredDescriptionDefault
folder_idYesFolder id (from list_folders)
document_idsYesDocument ids (from list_documents / search)
subfolder_idNoSubfolder id; 0 = the top of the folder

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, idempotentHint=true and readOnlyHint=false, so the safety profile is covered. The description contributes the escape hatch semantic (omit subfolder_id or pass 0 to move back to the top), which is genuinely useful behavior an agent would otherwise have to guess. It says nothing about the consequence of the destructive move, cross-folder restrictions, or the 100-document batch cap, so it adds only moderate value on top of annotations.

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?

One sentence, front-loaded with the primary operation and ending with the edge case in a compact parenthetical. No filler and nothing repeated.

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?

A three-parameter mutation tool with full schema coverage, complete annotations, and no output schema — the description covers the core action and the top-level edge case, which is most of what an agent needs. It could go further on whether the destination subfolder must belong to folder_id and what happens on partial failure across a 100-id batch, but those are refinements rather than blocking gaps.

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 100%, so folder_id, document_ids and subfolder_id are already documented. The description's restatement of the subfolder_id=0 meaning duplicates what the schema property text already says, adding no new syntax or constraint detail. Baseline 3 is correct when the schema carries the parameter burden.

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?

"Move documents of a folder into one of its subfolders" gives a specific verb and resource, and the parenthetical adds the reverse case (back to the top of the folder). The scope constraint — the destination must be a subfolder of the given folder — is stated, which is more than the name alone conveys. It stops short of explicitly distinguishing itself from the sibling move_room_documents, so a 4 rather than a 5.

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?

Usage is implied by the mechanics: it is for relocating documents within a folder hierarchy, and the parenthetical tells you how to undo back to the top level. There is no explicit when-to-use versus when-not guidance and no named alternative (e.g., move_room_documents), so an agent must infer the boundary itself.

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