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 and the pages beside them. 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 SnapHost marketing 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.

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>",
      "slug": "<slug>"
    },
    "name": "set_folder_slug"
  }
}

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.2/5.0
Behavior5/5

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

Goes well beyond the annotations by disclosing real side effects: uniqueness enforced against sibling folders and adjacent pages, every contained page getting a new workspace-host address with the old one forwarding until another page claims it, and the workspace-specific Marketing folder exception where /lp addresses can actually end. It also notes reversibility ("set the slug back to restore them") and the return value. The one tension is that ended /lp addresses read as mildly destructive while destructiveHint is false, but the general redirect behavior keeps this from being a true contradiction.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The core rename statement and its constraints are front-loaded and earn their place. However, the SnapHost marketing-workspace paragraph is highly specific to one workspace and consumes a large share of the text, and the redirect explanation is restated in two places. Dense but somewhat over-fitted to a single tenant.

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?

With no output schema, the description does say it returns the updated folder and enumerates side effects on contained pages. Remaining gaps: no statement of what happens on a slug collision (error? auto-suffix?) despite emphasizing uniqueness, and no indication of failure modes for non-Pro or personal-space calls. For a write tool these are worth one more sentence.

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 coverage is 100%, so folder_id, slug, and workspace_id are already fully documented in the schema, including the multi-workspace requirement for writes. The description adds conceptual meaning to the slug (uniqueness among siblings, role as path segment) but no format or constraint detail beyond the schema. 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 and resource ("Rename a folder's link slug") and immediately disambiguates it from the sibling rename_folder by defining the slug as the path segment in addresses like <handle>.snaphost.ai/<folder-slug>/<site-slug>. The distinction from set_site_slug is implicit in the example URL but the folder-vs-site scope is unmistakable.

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-not conditions: shared-drive folders only, personal (My drive) folders never appear in links, Pro workspaces only. This is strong eligibility guidance. It stops short of naming alternatives (e.g. rename_folder for the display name, set_site_slug for pages), leaving the agent to infer that routing from sibling names alone.

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.