Skip to main content
Glama

Publish folder

publish_folder
DestructiveIdempotent

Create or update a folder's public page, optionally changing its expiry, download restriction, or password. Returns the public URL. This is different from share_folder — a published folder is a standalone public landing page, while share_folder returns an invite-style shareable link. Pass template to give the page a designed layout: valid ids are the keys of templates in get_page_elements_catalog (an unknown id is refused with the valid list). A template publish creates the page design that get_page_layout and the page element tools read and edit. Omit template on a folder that is NOT live and has no page design yet, and it is published with standard so it is editable straight away (a workspace's own version of that template applies if it has one). A live page, or a folder that already has a design, is never given a template implicitly. template_applied in the response names the template this call applied, and is absent when the design was left alone. An explicit template is refused with 409 page_design_exists when the page has stored element edits, rather than overwriting them: republish WITHOUT template to keep that design, and edit it with the page element tools. That refusal does NOT cover a design that is only page settings (background colour, typography set with update_page_settings) — a template publish replaces those. A page still following its template (never edited) switches to the new one. Exposure: this makes the folder and its assets publicly accessible on the internet to anyone with the URL.

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": {
      "token": "<token>"
    },
    "name": "publish_folder"
  }
}

Input Schema

NameRequiredDescriptionDefault
tokenYesFolder token, as returned by list_folders, list_subfolders or ai_search — the parameter name is `token`, not `folder_token` or `collection_token`.
passwordNoPassword-protect the page; empty string clears it
templateNoPage-design template id: a key of `templates` in get_page_elements_catalog, such as `brand` — not its `display_name`. Omit to keep an existing design, or to get `standard` on a folder that is not live and has none.
organizationNoWorkspace slug, as returned by list_organizations. Omit it when the account has a single workspace — it is then resolved from your token. Pass it only when the account has several, or when you mean a workspace other than the obvious one.
expiration_dateNoISO 8601 expiry; empty string clears an existing expiry
disable_downloadsNoPrevent downloads from the published page

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true and openWorldHint=true, but the description adds substantial context beyond them: the explicit exposure warning that the folder and its assets become publicly accessible to anyone with the URL, the 409 refusal semantics, the fact a refusal does not cover settings-only designs which a template publish replaces, and the `template_applied` response field's conditional presence. It also states the implicit-`standard`-template rule, which is not derivable from annotations.

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?

Front-loads the core action and the share_folder distinction in the first two sentences, then layers the template rules and the exposure warning last. It is dense and every sentence carries information, though the template/design rules are lengthy enough that a reader must hold several conditions in mind at once.

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?

Complete for a destructive, world-visible mutation: it covers intent, alternatives, refusal paths, implicit defaults, response fields, and the public-exposure consequence despite no output schema existing. The remaining gap is minor — no mention of what happens to an existing password or expiry when other fields change, though the schema's 'empty string clears it' notes cover most of that.

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 a 3; the description exceeds that by explaining the omission semantics of `template` (keep the design, or get `standard` on a non-live folder with none) and the conditional `template_applied` echo, which the schema does not state. It adds no further meaning for `password`, `expiration_date`, `disable_downloads`, or `organization`, which the schema already documents well.

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 ('Create or update a folder's public page'), names the optional fields it can change, and explicitly distinguishes itself from share_folder with a concrete contrast between a standalone landing page and an invite-style link. An agent can select between the two siblings without opening either schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives explicit when-to-use and when-not-to-use rules for `template`: omit it on a non-live folder with no design, pass it to give a designed layout, and republish WITHOUT it to keep an edited design. It also names the alternatives (get_page_elements_catalog for valid ids, the page element tools for editing) and the exact 409 `page_design_exists` path.

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.

Resources