Skip to main content
Glama

Publish Website Widget

publish_website_widget
Destructive

Publish the managed website voice widget only after the user explicitly approves the displayed project, origins, limits and embed for that exact preview revision. Set body.approved=true and pass body.revision. Return the snippet verbatim. The hosted widget sends visitor microphone audio to PyAI. Sessions may consume project credit and session quotas cannot enforce a hard total spending cap. After an uncertain result, preview the widget before any further action.

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": {
      "id": "<id>",
      "body": "<body>"
    },
    "name": "publish_website_widget"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesSaved agent ID in the authenticated project.
bodyYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already declare destructive/openWorld/non-idempotent, but the description adds substantive context the annotations cannot: visitor microphone audio goes to PyAI, sessions consume project credit, quotas cannot enforce a hard spending cap, and uncertain outcomes require re-preview. These are exactly the risk details an agent needs before a destructive publish.

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 gating condition, then the payload requirements, then the risk/recovery notes. Every sentence carries information, though the density of caveats in the final three sentences makes it slightly heavier than necessary.

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?

Covers authorization gating, payload shape, return behavior ('Return the snippet verbatim'), billing/quota caveats, and failure recovery. With no output schema, a bit more on what a successful vs failed response looks like would close the remaining gap.

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?

The description restates 'body.approved=true' and 'pass body.revision', both of which the schema already documents with const and pattern constraints. It adds only the provenance of the revision ('from that approved preview'), and says nothing extra about the 'id' parameter.

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 and resource ('Publish the managed website voice widget') and pins the scope to 'that exact preview revision', which implicitly separates it from the draft/preview siblings. An agent knows exactly what object is being made live.

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 preconditions: only after the user explicitly approves the displayed project, origins, limits and embed for that exact revision. It also gives the recovery path ('After an uncertain result, preview the widget before any further action'), so both when-to-call and what-to-do-next are covered.

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.