Skip to main content
Glama

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.
siteNameNoName shown to the user and recipients, e.g. "Q3 report".
visibilityNoprivate (invitation-only, default) or public (anyone with the link).

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. Added

TDQS

A4.7/5.0
Behavior5/5

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

Goes well beyond the annotations by disclosing that AttachPage performs the download so files never enter the conversation, that the download is validated like an upload, that a siteId replaces the page at the same address, and that invitations are not sent. The destructiveHint=true annotation is corroborated by the explicit replacement semantics rather than contradicted.

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?

Dense but front-loaded: purpose and the sibling alternative lead, then limits, then parameter semantics. The single long paragraph packs in a lot, though each clause carries information and none is pure filler.

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?

An output schema exists so return values need no explanation, and the description covers source validation, limits, replacement behavior, and visibility defaults. Minor gaps remain around what happens on partial failure or post-publish state, but the agent has enough to call it correctly.

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 already 100%, so baseline is 3; the description adds meaning on top by explaining that siteId replaces an existing page at the same address, what visibility means in practice (invitation-only vs anyone with the link), and the constraints on accepted URLs and folder contents.

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 (publish a whole site from a link) and immediately distinguishes it from publish_page with an explicit 'use this instead of' clause and the exact input forms it accepts.

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 routing guidance against the sibling publish_page, enumerates the accepted sources (.zip, .tar.gz, .html, public GitHub repo or /tree/ link), and states the public-https requirement plus size/file-count limits that determine whether the call can succeed.

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