Skip to main content
Glama

Set site slug

set_site_slug
Idempotent

Change a site's slug, the last segment of its address on the workspace host and, for a landing page, of its snaphost.ai/lp address. The share permalink (nanoId) keeps working, and the old address on the workspace host forwards to the new one until another site takes it or remove_site_forward stops it; an /lp address and any campaign link to it stop. Normalised to lowercase letters, digits and hyphens; refused when another site in the same folder (or among the same My-drive pages) or a folder beside it holds it, and when the new address is an old one still forwarding to another site: ask the user, then retry with replace_forward to stop that forward. Needs a workspace on Pro, which publishes on its own host.

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

Input Schema

NameRequiredDescriptionDefault
slugYesThe new slug
site_idYesThe id of the site
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).
replace_forwardNoTake the address even though it forwards to another site, stopping that forward. Only after the user agreed.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / replace_forward
      Added value: +{
      +  "description": "Take the address even though it forwards to another site, stopping that forward. Only after the user agreed.",
      +  "type": "boolean"
      +}
  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.3/5.0
Behavior4/5

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

Annotations only declare a non-read-only, idempotent, non-destructive, closed-world mutation; the description adds real behavior beyond that: the old workspace-host address forwards until claimed or stopped, an /lp address and campaign links to it permanently stop, and there is a workspace tier prerequisite. The permanent breakage of /lp and campaign links sits slightly in tension with destructiveHint=false, but it is a side effect on links rather than on the site resource, so this is context rather than contradiction.

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 purpose is front-loaded and every clause carries operational information (forwarding, refusal rules, remediation, prerequisite). It is one long, dense, run-on sentence with semicolon chaining, which makes it harder to scan than it needs to be, and there is a typo ('snaphost.ai').

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?

For a 4-parameter mutation with no output schema, the description covers permissions, collision/refusal rules, side effects on existing links, and the recovery path, which is most of what an agent needs. It does not say what the call returns or whether a republish is needed for the new address to serve, leaving a small gap.

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 earns more: it specifies the normalization rule for slug (lowercase letters, digits, hyphens) and the exact retry workflow for replace_forward ('ask the user, then retry with replace_forward'), which the schema only hints at. workspace_id is left entirely to the schema, which documents it thoroughly.

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 ('Change a site's slug') and immediately defines the slug as the last segment of the site's address on the workspace host and, for landing pages, of its snaphost.ai/lp address. That scope plus the definition distinguishes it from set_folder_slug and set_workspace_domain_root without opening another schema.

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 concrete when-to-use context: it is the tool to call when the new address is refused because an old address still forwards, and it names replace_forward as the retry path after asking the user, plus remove_site_forward as the thing that ends a forward. It also states the Pro-workspace prerequisite. It stops short of an explicit exclusion against set_folder_slug or rename_site, but the context is clear.

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.