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 slug is already held in the folder it would land in (by a page or a sub-folder) or the address still forwards to another site, 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 SnapHost marketing 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.

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": {
      "site_id": "<site_id>"
    },
    "name": "move_site_to_folder"
  }
}

Input Schema

NameRequiredDescriptionDefault
spaceNoDrive to use when moving to the root (no folder_id): `personal` (default) or `shared` (Pro workspaces only). The shared root does not open the site to the workspace; it stays with whoever it was shared with. 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 / space / description
      Previous value: -"Drive to use when moving to the root (no folder_id): `personal` (default) or `shared` (Pro workspaces only). Ignored when a folder_id is given."New value: +"Drive to use when moving to the root (no folder_id): `personal` (default) or `shared` (Pro workspaces only). The shared root does not open the site to the workspace; it stays with whoever it was shared with. Ignored when a folder_id is given."
  2. 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)."
  3. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Beyond the annotations (which only declare non-read-only, idempotent, non-destructive, closed-world), the description discloses the important side effects: share link retained, visibility reconciled when crossing personal/shared boundaries, old workspace-host address forwarding, automatic numbered-slug fallback on collision, and that landing pages served under /lp change address. Those are exactly the consequences an agent cannot learn from the annotation flags.

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 the folder_id/root rule are front-loaded in the first two sentences, and the remaining sentences each add a distinct behavior (permissions, forwarding, slug collision, return value). The final sentence about the SnapHost marketing workspace is long and packs several ideas, but it is workspace-specific knowledge not derivable from the schema.

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?

There is no output schema, and the description compensates by stating what comes back (the updated site read model with its new `folder_id`, plus reporting of a new /lp address when applicable). Combined with permissions, collision behavior, and root-vs-folder modes, an agent has enough to invoke this correctly and interpret the result.

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% and the schema already documents `folder_id` ("destination folder id from list_folders", "omit to move to the drive root"), `space`, `workspace_id`, and `site_id`. The description mostly restates those semantics (folder_id source, root behavior), adding real value only around what filing does to visibility and addressing rather than to the parameters themselves. Baseline 3 applies.

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 (file/move), a specific resource (site -> folder), and the invariant the agent cares about (share link preserved). It is clearly distinguishable from sibling operations like move_folder (folders, not sites), rename_site, and set_site_slug.

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?

It explains the two operating modes explicitly: pass a `folder_id` from list_folders to file into a folder, omit it to return to the drive root, with `space` selecting which root. It also states the creator-only constraint. What's missing is an explicit contrast with sibling alternatives (e.g., when to use this vs. rename_site/set_site_slug when the goal is changing the address), so the agent must infer that routing.

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.