Skip to main content
Glama

Store Manager for WooCommerce

Approve draft (preview card button)

approve_changeset
Destructive

Applies a draft change set in the shop on behalf of the signed-in shop owner or admin who pressed Approve in the app's draft view. Requires ui_nonce, a single-use token that the server gives to that view in the result metadata; without a valid one nothing happens.

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": {
      "changeset_id": "<changeset_id>",
      "ui_nonce": "<ui_nonce>"
    },
    "name": "approve_changeset"
  }
}

Input Schema

NameRequiredDescriptionDefault
ui_nonceYesSingle-use token of the draft view's button.
changeset_idYesChange set id.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and idempotentHint=false; the description adds real context beyond them, namely the actor on whose behalf changes are applied and the failure behavior ('without a valid one nothing happens'). It stops short of saying whether the draft is consumed afterward or can be undone via revert_changeset.

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?

Two sentences with no filler; the action is front-loaded and the prerequisite and failure consequence follow immediately. Nothing could be cut without losing a constraint the caller needs.

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 two-parameter destructive mutation with no output schema, the description covers actor, prerequisite, and failure mode adequately. It leaves the post-apply state (draft consumption, reversibility) unstated, which matters for a destructive tool.

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 would be 3, but the description adds genuine meaning for ui_nonce: it is single-use and is issued by the server in the result metadata of the draft view. That tells an agent where to obtain the token, which the schema does not.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb ('Applies') and resource ('a draft change set'), plus the scoping constraint that it acts on behalf of the signed-in owner/admin from the draft view. The singular 'a draft change set' implicitly separates it from the plural sibling approve_all_changesets, but no sibling is named explicitly.

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?

Gives clear invocation context (the Approve button in the app's draft view) and a hard prerequisite (ui_nonce from result metadata). It never explicitly says when to prefer this over approve_all_changesets or revert_changeset, so alternatives are left 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