Skip to main content
Glama

Publish the draft

publish
Destructive

Make the draft the live site and save it as a new version. ONLY call this after the user said yes to publishing. It can be blocked by Clay's safety check; then show the message as it is.

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": {
      "site": "<site>"
    },
    "name": "publish"
  }
}

Input Schema

NameRequiredDescriptionDefault
noteNowhat changed, one line
siteYesthe site's clay.site name (subdomain) or its id

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already flag destructive=true, idempotent=false, and openWorld=true, but the description adds information an agent could not get from them: the call may be blocked by Clay's safety check, and the returned message must be shown verbatim. That error-path and handling guidance has real behavioral value. It still leaves open whether a publish can be undone through version history, a relevant gap for a destructive operation.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences, both doing work: the first states the effect, and the second states the precondition plus the failure mode. The key constraint is front-loaded, and there is no redundancy.

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 small, destructive, open-world mutation tool with only two parameters and an output schema absent, the definition covers the effect, the approval precondition, and the safety-check failure path. The one missing piece is whether a publish is recoverable through `list_versions`, which matters given destructiveHint=true.

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 100%: both the `note` field ('what changed, one line') and the `site` field ('clay.site name or id') are already documented. The description adds nothing beyond what the schema states, so the baseline of 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 action and its dual effect: 'Make the draft the live site and save it as a new version.' An agent can tell this apart from preview or list_versions without opening any schema, because the copy spells out the live-site transition and the new-version side effect.

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

Usage Guidelines4/5

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

The definition gives a hard precondition with emphasis: 'ONLY call this after the user said yes to publishing.' That is explicit when-to-use guidance. It does not name an alternative, such as preview for inspecting a draft instead of going live, so it falls short of a 5.

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