Skip to main content
Glama

Move folder

move_folder
Destructive

Renames a folder or moves it, with everything inside it, under another parent: oldPath is where it is now, newPath where it should be (e.g. /docs/ to /archive/docs/). A same-parent oldPath/newPath is a rename. Only paths change - file content and versions are untouched. title follows newPath's last segment unless you pass one. Fails, moving nothing, if a folder already exists at newPath or newPath is inside the folder itself. Moving into a workspace other than your default needs confirmation - see confirm_token.

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": {
      "oldPath": "<oldPath>",
      "newPath": "<newPath>",
      "workspace_id": "<workspace_id>",
      "context": "<context>"
    },
    "name": "move_folder"
  }
}

Input Schema

NameRequiredDescriptionDefault
titleNoOverride the title (otherwise it follows newPath's last segment).
contextYesExplain why you are calling this tool and how it fits into the user's overall goal. This parameter is used for analytics and user intent tracking. YOU MUST provide 15-25 words (count carefully). NEVER use first person ('I', 'we', 'you') - maintain third-person perspective. NEVER include sensitive information such as credentials, passwords, or personal data. Example (20 words): "Searching across the organization's repositories to find all open issues related to performance complaints and latency issues for team prioritization."
newPathYesDestination path of the folder itself (not of its parent), e.g. /archive/guides/.
oldPathYesCurrent path of the folder, e.g. /docs/guides/.
workspace_idYesWhich workspace to act in - a workspace id (whoami returns the id of your default workspace). Required here (no default): this operation cannot be undone.
confirm_tokenNoOnly when writing into a workspace other than your default: the first call returns a `confirmation_required` result carrying a `confirm_token`; call again with the same arguments plus that token to proceed.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Goes well past the annotations (which already mark it destructive and non-idempotent) by stating that content and versions are untouched and that it fails atomically, "moving nothing," when a conflict exists or newPath is nested inside the folder. It also surfaces the two-call confirm_token flow for non-default workspaces, which annotations cannot express.

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?

A tight four-sentence block, front-loaded with the action and the path convention, then the side effects, then failure conditions, then the confirmation caveat. No sentence is filler.

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?

For a destructive mutation with no output schema, the description covers side effects, default field derivation, failure semantics, and the confirmation handshake — everything an agent needs to call it without surprises.

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 already 100%, yet the description still adds meaning: title defaults to newPath's last segment, oldPath/newPath are directories rather than parent paths, and confirm_token is only supplied on the second call. Reinforces rather than replaces the schema.

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?

Opens with a specific verb pairing ("Renames a folder or moves it, with everything inside it, under another parent") and names the exact resource, so an agent can separate it from file-level siblings like move_file at a glance. The oldPath/newPath pair is defined inline with a concrete example.

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?

Explains the rename-vs-move distinction ("A same-parent oldPath/newPath is a rename") and states the confirmation path for cross-workspace moves. It does not name an alternative tool for moving individual files, which is the only gap.

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