Skip to main content
Glama
Replaced by its MCP Registry listing

This endpoint is listed in the official MCP Registry as AttachPage.

Publish from url

publish_from_url
Destructive

Publish a whole site from a link, as the connected user: AttachPage downloads it, so the files never pass through the conversation. Use this instead of publish_page when the site is already online as a .zip, .tar.gz or .html file, or in a public GitHub repository (github.com/owner/repo, or a /tree/branch/folder link). The download must be public https, up to 50 MB of site, 20 MB per file and 2,000 files; it is checked like an upload. A siteId replaces an existing page at the same address. Visibility is private (invitation-only, default) or public. Does not send invitations.

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": {
      "url": "<url>"
    },
    "name": "publish_from_url"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesPublic https link to a .zip, .tar.gz or .html file, or a GitHub repository or folder (github.com/owner/repo/tree/main/site).
slugNoOptional address label, 3-40 lowercase letters, digits or hyphens. Random when omitted.
folderNoFolder inside the download to publish, e.g. dist or site. Default: the top level, or the usual site folder (dist, build, public…) holding index.html.
siteIdNoReplace this existing page at the same address.
projectNoOptional project to file the page under, by name or id from list_projects, e.g. "Q4 proposal". A new name starts that project. An empty string takes the page out of its project.
siteNameNoName shown to the user and recipients, e.g. "Q3 report".
visibilityNoprivate (invitation-only, default) or public (anyone with the link).
descriptionNoOptional one-line description shown in the user's pages list. An empty string clears it.

Output Schema

NameRequiredDescriptionDefault
urlNoPage address.
slugNoAddress label.
folderNoFolder of the download that was published, when not the top level.
siteIdNoPage id; pass it to replace the page later.
fileCountNoFiles published.
visibilityNoprivate or public.
deploymentIdNoId of this version.
importedFromNoWhere the files were downloaded from.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / description
      Added value: +{
      +  "description": "Optional one-line description shown in the user's pages list. An empty string clears it.",
      +  "maxLength": 500,
      +  "type": "string"
      +}
    • addedInput schema / properties / project
      Added value: +{
      +  "description": "Optional project to file the page under, by name or id from list_projects, e.g. \"Q4 proposal\". A new name starts that project. An empty string takes the page out of its project.",
      +  "maxLength": 80,
      +  "type": "string"
      +}
  2. Added

TDQS

A4.2/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true and openWorldHint=true, and the description usefully confirms what gets destroyed (a siteId replaces the existing page at the same address) plus hard limits (50 MB total, 20 MB per file, 2,000 files, public https only) and that the download is validated like an upload. However, it does not disclose failure/partial-publish behavior or what happens to the previous page's existing URL or recipients, which matters for a destructive, open-world write.

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 most decision-relevant content (the sibling substitution rule) is front-loaded in sentence two, and the remaining sentences cover constraints and side effects with little filler. It is dense but nearly every clause carries information, with slight redundancy between the description and schema on visibility and siteId.

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?

With annotations, a full-coverage schema, and an output schema all present, the description supplies the remaining missing context: input format constraints, size/file limits, validation semantics, replacement behavior, and the fact that invitations are not sent. Nothing an agent needs in order to call this correctly appears to be 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 every parameter already carries an inline definition; the description adds only marginal semantic value by reiterating the siteId replacement effect and the private-by-default visibility. With the schema doing the heavy lifting, the baseline 3 is appropriate.

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?

The description names a specific verb and resource ('Publish a whole site from a link') and immediately scopes it ('as the connected user'). It explicitly contrasts itself with the named sibling publish_page, so the agent can differentiate the two without inspecting 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?

It states the exact selection rule: use this instead of publish_page when the site is already online as a .zip, .tar.gz or .html file, or in a public GitHub repository, including the URL forms accepted. It also adds a downstream boundary ('Does not send invitations'), which implicitly routes delivery to send_page.

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