Skip to main content
Glama

Publish a demo

publish_demo
Destructive

Publishes the current draft: viewers of the hosted link, embeds and collections see it right away (a new version, vN, kept in revision history). Fails with the reason when something needs fixing first (no steps, a broken link) or the plan’s published-demo limit is reached. Returns the hosted URL and embed code, and uncheckedLivePages: live pages viewers can scroll further than their screenshot that nobody has scrolled through in the editor yet (tell the user; they open them from editUrl).

Requires: demos:read, demos:publish.

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": {
      "demoId": "<demoId>"
    },
    "name": "publish_demo"
  }
}

Input Schema

NameRequiredDescriptionDefault
demoIdYesDemo id (from list_demos), e.g. "d_Ab12Cd34Ef56Gh78".

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Annotations only declare destructive/not-readonly/not-idempotent; the description adds substantive behavior beyond that: a new version vN is created and retained in revision history, changes are visible to viewers immediately, failure modes are surfaced with reasons, and a plan-level published-demo limit applies. It also discloses non-obvious return content including `uncheckedLivePages` with an instruction to tell the user, which is real operational context the annotations cannot convey.

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?

Front-loaded with the action and its immediate effect, followed by failure modes and return values in a logical order; there is no filler. It is dense — nested parentheticals and the `uncheckedLivePages` clause take effort to parse — but every sentence carries information an agent needs.

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?

No output schema exists, and the description compensates by naming the return payload (hosted URL, embed code, `uncheckedLivePages`) and explaining the one field an agent would otherwise misinterpret. For a single-parameter publish tool with destructive annotations, nothing material is left unexplained.

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?

Only one parameter (demoId) and schema description coverage is 100%, with the schema already explaining the id format and pointing at list_demos. The description adds nothing further about the parameter, so the baseline 3 applies.

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?

Opens with a specific verb and resource: 'Publishes the current draft', then immediately scopes what publication means (hosted link, embeds, collections update right away). This is clearly distinguishable from siblings like unpublish_demo, update_demo, and duplicate_demo without opening any schema.

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?

Gives clear context for invoking it (publishes the current draft) and enumerates the conditions under which it fails — no steps, broken link, published-demo limit — which functions as implicit preconditions. It does not explicitly name an alternative tool or a when-not-to-use case, 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.