Skip to main content
Glama

1ClickSiteAI

Apply a change set

apply_change_set
Destructive

Applies one change set to a site: edits to text, settings, styles, menus, posts, or SEO, in the operations format that get_schema describes. Before you call it, call site_guide once, read the affected part with get_schema and get_state, and check the change with validate; send the state_version from that read as base_version. It returns the change set id and the resulting state_version, and rollback_change_set can undo the change. After it succeeds, read the changed part again with get_state. If an operation deletes content or adds a link outside the site, nothing is written and the result lists what would be removed or linked: show that list to your user, and call again with confirm: true only after they agree. A stale_state_version error means the site changed after your read: read again and rebuild the change. No content check runs on what you write, and the site is published under your user's business name, so your user owns the wording, the claims, and any reviews: write only what your user gave you.

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": {
      "summary": "<summary>",
      "operations": "<operations>",
      "siteId": "<siteId>",
      "base_version": "<base_version>"
    },
    "name": "apply_change_set"
  }
}

Input Schema

NameRequiredDescriptionDefault
siteIdYesSite id from list_sites or create_site.
confirmNoSet true only after your user approved the list from your previous call to this tool. Never set it on the first call.
summaryYesOne line for the change card, in the language the person writes in.
operationsYesOperations in the plugin's change-set format. Read get_schema first for the fields of each op.
base_versionYesThe state_version from your latest get_state or get_schema result for this site. A stale_state_version error means the site changed since: read again.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

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, openWorldHint=true and idempotentHint=false, but the description adds the crucial two-phase behavior: destructive deletes and out-of-site links write nothing on the first call and instead return a preview list that must be shown to the user before re-calling with confirm: true. It also discloses the return values (change set id and resulting state_version), that no content check runs on written content, that publishing happens under the user's business name, and that rollback_change_set can undo it — all beyond the annotations.

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 purpose, then workflow, then confirmation flow, then error handling — a logical order with no filler sentences. It is on the long side and the stale-version recovery is stated twice (once as base_version guidance, once as an error explanation), which is mild redundancy rather than waste.

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 destructive, non-idempotent mutation tool with no output schema, the description covers the prerequisites, the safety gate, the return values, the failure mode, and the undo path. An agent has everything needed to call it correctly and to recover from the most likely error.

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 parameters are already documented, but the description still adds meaning by tying base_version to the concrete read step and explaining the stale_state_version failure mode, and by framing confirm as an approval gate that must never be set on the first call. That context is more than a restatement of the schema text, though some overlap remains with the existing parameter 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 ('Applies one change set to a site') and enumerates the scope of what a change set covers: text, settings, styles, menus, posts, SEO. It also names the format source (get_schema) and distinguishes itself from validate and rollback_change_set by role, so an agent can separate it from siblings without opening their schemas.

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 an explicit ordered workflow: call site_guide once, read the affected part with get_schema and get_state, check with validate, then send that read's state_version as base_version. It names the alternatives and the conditions that select them, and the post-write guidance ('read the changed part again with get_state') and stale-version recovery path leave nothing to inference.

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