Skip to main content
Glama

Set folder slug

set_folder_slug
Idempotent

Rename a folder's link slug, its path segment in folder-path addresses like .snaphost.ai//. Shared-drive folders only: personal (My drive) folders are organisational and never appear in links. The slug stays unique among sibling folders. Pro workspaces only (slug addressing rides on the workspace subdomain). Every page inside gets a new workspace-host address and its old one forwards there until another page takes it. In the website workspace the Marketing folder keeps its slug (it is the /lp address space); a folder inside it may change, and the result names every /lp address that ended (set the slug back to restore them) and every one that started. Returns the updated folder.

Input Schema

NameRequiredDescriptionDefault
slugYesThe new slug, e.g. "financials"
folder_idYesThe folder id from list_folders
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.4/5.0
Behavior5/5

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

Adds substantial behavior beyond the annotations: slug uniqueness among siblings, the side effect that every contained page gets a new address while the old one forwards 'until another page takes it', and the reversibility note ('set the slug back to restore them'). Annotations cover safety/idempotency, and the description supplies the real consequential behavior.

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?

Purpose and constraints are front-loaded in the first three sentences, and most sentences earn their place. The trailing 'Marketing folder' example is quite long and niche for a general reader, slightly diluting focus.

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 rename-with-redirect-semantics tool with no output schema, the description covers scope, prerequisites, side effects, and reversibility, and notes the return ('Returns the updated folder'). Nothing an agent needs to invoke it correctly is missing.

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 both required params and the optional workspace_id are already documented in the schema. The description's folder-path illustration lightly clarifies what 'slug' means but adds no syntax or format detail beyond the structured fields, so 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?

States a specific verb+resource ('Rename a folder's link slug') and immediately disambiguates the concept by defining the slug as the path segment in folder-path addresses. This cleanly separates it from rename_folder (name) and set_site_slug (site), so an agent can pick the right tool without reading schemas.

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?

Gives explicit when/when-not constraints: 'Shared-drive folders only: personal (My drive) folders... never appear in links' and 'Pro workspaces only'. Strong exclusion guidance, though it never names the adjacent alternative tools (e.g. rename_folder, move_folder) as the selection cue.

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.