Skip to main content
Glama

Move site to folder

move_site_to_folder
Idempotent

File a site into a folder, keeping its share link. Pass the destination folder_id from list_folders; omit folder_id to move the site back to the drive root. Moving a site between a personal and a shared (workspace-wide) folder reconciles who can see it. Only the site’s creator can move it. The site’s old workspace-host address forwards to its new one until another page takes it. If the address it would land on is held by another site (across drives) or still forwards to one, the site gets the next free numbered slug and the result says so. Returns the updated site read model with its new folder_id. In the website workspace the Shared-drive marketing folder is served publicly at snaphost.ai/lp/ (a site filed one folder deeper at /lp//), so filing a site there makes it a landing page and moving a landing page CHANGES its /lp address; the result reports the new one.

Input Schema

NameRequiredDescriptionDefault
spaceNoDrive to use when moving to the root (no folder_id): `personal` (default) or `shared` (Pro workspaces only). Ignored when a folder_id is given.
site_idYesThe id of the site to file
folder_idNoThe destination folder id from list_folders. Omit to move the site to the drive root.
workspace_idNoOptional: the workspace to act in, from list_workspaces (the connection reaches the person's personal space and every workspace they are a member of). Required on a write when the connection reaches more than one workspace. Omit to act in the personal space (for an older single-workspace connection, the one workspace it was authorized for).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / workspace_id / description
      Previous value: -"Optional: the workspace (the personal space or a Pro workspace) to act in, from list_workspaces. Omit to act in the token owner's own account."New value: +"Optional: the workspace to act in, from list_workspaces (the connection reaches the person's personal space and every workspace they are a member of). Required on a write when the connection reaches more than one workspace. Omit to act in the personal space (for an older single-workspace connection, the one workspace it was authorized for)."
  2. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Well beyond the annotations (which only say non-destructive, idempotent, closed-world), the description discloses the creator-only permission gate, visibility reconciliation across personal/shared folders, forwarding of the old address, automatic numbered-slug fallback on address collisions, and the public landing-page consequences. These are exactly the side effects an agent could not infer from structured fields.

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?

The core action and its scope are front-loaded in the first sentence, and each subsequent sentence carries non-redundant information. The final sentence is dense and slightly convoluted in its /lp/<folder>/<slug> aside, which costs some readability.

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?

With no output schema, the description compensates by stating what is returned (the updated site read model with new folder_id) and where the tool reports a slug reassignment or new /lp address. Permissions, collisions, and side effects are all covered for a mutation tool.

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 the baseline is 3, but the description adds real meaning about what folder targeting does — visibility reconciliation between drive types and the /lp/<slug> address implications of filing into the marketing folder. It does not mention the `space` or `workspace_id` parameters directly, so it only partially exceeds 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?

"File a site into a folder, keeping its share link" gives a specific verb, resource, and a preserved-invariant, making it trivially distinguishable from move_folder, rename_folder, and set_site_slug. An agent can identify the operation from the first clause alone.

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?

Explicit conditions are given: pass a folder_id from list_folders, or omit it to return the site to the drive root, and "Only the site's creator can move it" rules out cases an agent cannot perform. No sibling tool is named as the wrong alternative (e.g. move_folder for folders), so it stops just short of a 5.

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.