Skip to main content
Glama

Confita

Change the site draft

draft_site_change
Idempotent

For shop owners: change the seller's site draft with a list of edits, applied in order, all or none. A page is sections of 1 to 4 columns holding blocks, with stickers on top; a sandboxed custom block is for what typed blocks cannot do. Every id and field is in get_reference. It takes the draft_version last read. It never publishes: the reply's preview_url shows the draft. Pro pieces can be drafted on Free.

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": {
      "draft_version": "<draft_version>",
      "edits": "<edits>",
      "request_id": "<request_id>"
    },
    "name": "draft_site_change"
  }
}

Input Schema

NameRequiredDescriptionDefault
editsYesApplied in order, all or none.
restoreNoAn earlier unpublished draft to make the draft again, first; publish_site names it.
request_idYesUnique per call; the same id again returns the first result.
draft_versionYesAs last read; if the site changed since, nothing happens and the reply has the site as it is now.

Output Schema

NameRequiredDescriptionDefault
cardNo
nextNo
paidNo
siteNo
addedNo
errorNo
postsNo
noticeNo
changedNo
choicesNo
outcomeNo
timezoneNo
preview_urlNo
confirmationNo
draft_versionNo
upgrade_neededNo
contrast_suggestionsNo
contrast_suggestions_moreNo

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?

Goes well beyond the annotations (which only say non-read-only, non-destructive, idempotent): it discloses atomic all-or-none application in order, optimistic-concurrency behavior when the site changed since the version read, that nothing is published and the reply carries a preview_url, and that Pro pieces can still be drafted on Free.

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?

Purpose and atomicity are front-loaded, then the structural model, then the safety/concurrency notes; nearly every sentence carries information. A few clauses are terse to the point of ambiguity, notably 'Pro pieces can be drafted on Free.'

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?

For a complex, high-edit-count mutation tool it covers the essentials an agent needs: atomicity, ordering, id source, version precondition, and the non-publishing outcome. Return values need no further explanation because an output schema exists, and preview_url is called out anyway.

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 baseline is 3, but the description adds real meaning: the domain model of a page as sections of 1–4 columns holding blocks with stickers on top, the purpose of the sandboxed `custom` block, and the concurrency contract of draft_version. It does not attempt to re-document individual edit operations, which the schema already covers.

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: 'change the seller's site draft with a list of edits, applied in order, all or none.' It also explicitly contrasts with publishing ('It never publishes'), which separates it from publish_site, and routes id/field lookups to get_reference.

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?

Clear context for use: shop owners drafting site changes, taking 'the `draft_version` last read', with get_reference named as the source for every id and field. The exclusion from publishing implies publish_site as the alternative, but that sibling is not named explicitly.

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