Skip to main content
Glama

Draft Website Widget

draft_website_widget
DestructiveIdempotent

Save an unpublished website voice widget for a saved agent in the connected project. Specify the exact HTTPS origin and both daily session limits. The hosted widget sends visitor microphone audio to PyAI. Its session quotas cannot enforce a hard total spending cap. To replace a draft, first preview it and pass its expected_revision. A published widget cannot be edited here.

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": "draft_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.6/5.0
Behavior5/5

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

Beyond the annotations, the description discloses the data flow ('The hosted widget sends visitor microphone audio to PyAI') and a material limitation ('Its session quotas cannot enforce a hard total spending cap'), neither of which is derivable from readOnlyHint/destructiveHint/idempotentHint/openWorldHint. It also explains the concurrency-protection behavior of expected_revision, which tempers the destructiveHint=true warning with a concrete safe-replace procedure.

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?

Five short sentences, each doing distinct work: purpose, required inputs, data disclosure, limitation, and replacement precondition — with the core purpose front-loaded and nothing repeated.

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 destructive, open-world mutation with no output schema and a nested body object, the description covers prerequisites, data handling, quota semantics, and the revision guard. It stops short of saying what the save returns (e.g., whether a new revision is emitted for later publish), which is the one gap an agent might hit on a follow-up call.

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 description coverage is only 50%, but the description compensates by naming the origin and both session-limit fields as required inputs and clarifying that the limits are session counts rather than spend caps. It does not restate the origin's HTTPS/no-wildcard constraints, which the schema already carries, so it adds meaning without redundancy.

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 opens with a specific verb and resource ('Save an unpublished website voice widget for a saved agent in the connected project'), and immediately scopes it apart from the publish and preview siblings ('A published widget cannot be edited here', 'first preview it'). An agent can distinguish this from publish_website_widget and preview_website_widget 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?

It gives explicit when-not guidance ('A published widget cannot be edited here') and prescribes the precondition sequence for replacement ('first preview it and pass its expected_revision'). The guidance is actionable, though it references the preview step descriptively rather than as a named alternative tool.

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.