Skip to main content
Glama

Set the sales page

set_sales_page
Destructive

Put the seller's sales page HTML above the cart on one of their checkouts, draft or live, replacing any page already there. To change part of an existing page, use get_sales_page and edit_sales_page instead. Pass an empty string to remove it so the cart stands on its own. On a draft this applies straight away. On a LIVE checkout it applies straight away too (status applied; the seller can roll it back on their Approvals page), unless it touches money: a price, currency, billing, the delivery link, payment plans, an early-bird price or campaign, or a retention discount or pause. Those create an approval request instead (status pending_approval): tell the seller, give them the approvalUrl, and check later with approval_status. To change other things straight away, don't send money fields in the same call. Never invent a price or a link. The answer includes slop: { score, flags }, Swipefast's plain-rules check of the page's words (0-100, no AI): if score is 20 or more, fix the flagged phrases with edit_sales_page, keep the facts, and save again.

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": {
      "product": "<product>",
      "html": "<html>"
    },
    "name": "set_sales_page"
  }
}

Input Schema

NameRequiredDescriptionDefault
htmlYesThe page's HTML, written by following get_sales_page_guide.
accountNoOnly to work in a client's account: its id from list_accounts. Leave it out for your own account.
productYesThe checkout's id or slug.

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true and readOnlyHint=false, but the description goes far beyond: draft applies instantly, live applies instantly unless it touches money (with a concrete list), in which case an approval request with status pending_approval and an approvalUrl is created. It also discloses the rollback path and the embedded slop score contract, which no annotation covers.

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 core action and the alternative, and nearly every sentence carries actionable detail. It is a dense run-on block with no visual structure, and the closing slop paragraph is long, though it earns its place given there is no output schema.

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?

With no output schema, the description still documents the response shape: status applied versus pending_approval, approvalUrl, and the slop { score, flags } object with its 20-point threshold and remediation path. Nothing an agent needs to call this correctly or handle the result is missing.

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 coverage is 100%, so the baseline is 3, but the description adds genuine meaning: an empty html string removes the page so the cart stands alone, and 'never invent a price or a link' constrains html content. That is real guidance beyond the schema's field descriptions.

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 — places the seller's sales page HTML above the cart on a checkout, draft or live — and explicitly distinguishes itself from get_sales_page/edit_sales_page for partial edits. An agent can route correctly without opening a schema.

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?

Gives explicit when-to-use (full replacement) versus alternatives (get_sales_page + edit_sales_page for partial changes), plus the empty-string removal case and the caveat about not sending money fields alongside other changes. Exclusions and alternatives are both spelled out.

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.