Skip to main content
Glama

Publish static HTML to a Cloud site

deploy
Destructive

Publishes self-contained HTML to one Cloud site this account owns and replaces that site’s live static page. Pass projectId instead of html to send a saved Studio page. Public env vars for that site are written into the page. Private values are not. Use deploy to make a page public. Use project to read or save source without publishing, create_project to create the site, and POST /api/cloud/v1/{siteId} with a Cloud deploy key for ZIP uploads. Cloud is not a Node host and has no server runtime.

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": {
      "siteId": "<siteId>"
    },
    "name": "deploy"
  }
}

Input Schema

NameRequiredDescriptionDefault
htmlNoComplete self-contained HTML document, 180 KB or smaller. Omit when projectId is set.
siteIdYesUUID of a Cloud site this account owns. The published HTML for that site is replaced.
projectIdNoOptional Studio project UUID. Sends that saved page instead of html. Does not publish when the Studio page is empty.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / html / description
      Previous value: -"Complete self-contained HTML document, 180 KB or smaller."New value: +"Complete self-contained HTML document, 180 KB or smaller. Omit when projectId is set."
    • changedInput schema / properties / projectId / description
      Previous value: -"Optional Studio project UUID. Sends that saved page instead of html."New value: +"Optional Studio project UUID. Sends that saved page instead of html. Does not publish when the Studio page is empty."
    • changedInput schema / properties / siteId / description
      Previous value: -"Cloud site UUID."New value: +"UUID of a Cloud site this account owns. The published HTML for that site is replaced."
  2. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Beyond the annotations, the description discloses what is destroyed (the site's live static page is replaced), a side effect not visible in the schema (public env vars are written into the page, private values are not), and a platform constraint (Cloud is not a Node host, no server runtime). These are exactly the behavioral facts an agent needs before invoking a destructive, non-idempotent 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 effect and the destructive replacement are front-loaded, and each subsequent sentence carries distinct information (input mode, env var behavior, alternatives, platform limit). It is dense and slightly run-on, with mild redundancy between 'Use deploy to make a page public' and the opening sentence.

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 3-parameter destructive tool with no output schema, the description covers purpose, alternatives, side effects, and platform limits thoroughly. It does not describe what a successful publish returns or any auth/permission requirements, which are the remaining gaps given there is no output schema to lean on.

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 adds the mutual-exclusivity framing in prose ('Pass projectId instead of html'), which clarifies the two alternative input modes at a glance. It does not add format or size details beyond what the schema already documents.

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 first sentence names a specific verb (publishes) and resource (self-contained HTML to one Cloud site) and states the concrete effect: it replaces that site's live static page. It also distinguishes itself from siblings by naming project and create_project as the non-publishing alternatives.

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?

Explicit routing is given: use deploy to make a page public, project to read or save source without publishing, create_project to create the site, and a raw POST endpoint for ZIP uploads. It also states the input-mode choice (pass projectId instead of html), so an agent knows both when to pick this tool and how to pick its input 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