Skip to main content
Glama

CodePress Sites

Publish public website

publish_website
DestructiveIdempotent

Publishes the current built App artifact. Requires the current website generation and the built artifact's source_artifact_sha.

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": {
      "page_id": "<page_id>",
      "expected_generation": "<expected_generation>",
      "expected_artifact_sha": "<expected_artifact_sha>"
    },
    "name": "publish_website"
  }
}

Input Schema

NameRequiredDescriptionDefault
page_idYesApp page UUID.
organizationNoOrg slug or id to act in; the default organization when omitted.
expected_generationYes
expected_artifact_shaYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already flag destructiveHint=true, idempotentHint=true and openWorldHint=true; the description adds the precondition that the current generation and built artifact sha must be supplied, hinting at optimistic concurrency. It does not disclose what the publish replaces or destroys, whether an existing public site is overwritten, or what happens on a generation/sha mismatch, which is the key behavior for a destructive mutation.

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?

Two short sentences with the action front-loaded and the precondition second; nothing is wasted. Minor deduction for the loosely matching 'source_artifact_sha' term rather than the schema's expected_artifact_sha.

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 tool with no output schema, the description covers the action and its hard preconditions; annotations carry the safety profile. It falls short on conflict/failure semantics and on what state the published site ends up in, which an agent would want before invoking a destructive publish.

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 coverage is 50%: page_id and organization are documented inline, but expected_generation and expected_artifact_sha are not. The description partially compensates by explaining these must be the 'current website generation' and the built artifact's sha, though it calls the latter 'source_artifact_sha', a naming mismatch that could confuse which value to pass.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description uses a specific verb ('Publishes') and a specific resource ('the current built App artifact'), which is more precise than a bare 'publish'. It does not explicitly contrast with the similarly named sibling publish_guest_site, so differentiation is only implicit via 'App artifact'.

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

Usage Guidelines3/5

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

It implies prerequisites ('Requires the current website generation and the built artifact's source_artifact_sha'), which tells the agent when the call is valid. However, it never states when to use this versus prepare_website, get_website_status, or publish_guest_site, and gives no guidance on what to do if the generation is stale.

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.