Skip to main content
Glama

Store Manager for WooCommerce

AddSynapse: approve all drafts (preview card button)

approve_all_changesets
Destructive

AddSynapse: Applies, one after the other, the pending drafts that the app's draft view listed under «Approve all», on behalf of the signed-in site owner or admin who pressed it. Requires ui_nonce, a single-use token that the server gives to that view in the result metadata and that names those exact drafts; 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_all_changesets"
  }
}

Input Schema

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

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Adds context beyond the annotations: it acts on behalf of the signed-in owner/admin, applies drafts sequentially, and hard-fails with no effect when the nonce is invalid or missing. What it does not disclose is failure behavior mid-batch (partial approvals) or irreversibility, which the destructiveHint=true annotation already flags but the prose could reinforce.

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?

Two tight sentences, front-loaded with the action, followed by the gating precondition. The clause 'on behalf of the signed-in site owner or admin who pressed it' is slightly verbose but carries real authorization meaning.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Covers auth, nonce gating, and batch behavior, and annotations carry the safety profile, so nothing critical is missing for invoking it. However, for a destructive batch operation with no output schema, the description says nothing about partial-failure outcomes or what the call returns, leaving an agent unable to predict post-call state.

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; the description still earns credit by explaining the nonce's provenance ('server gives to that view in the result metadata') and that it names those exact drafts, which clarifies scope beyond 'Single-use token of the draft view's button'. It restates changeset_id only lightly compared with the schema's own wording.

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 and resource ('Applies ... the pending drafts ... listed under «Approve all»') and conveys batch semantics via 'one after the other', which distinguishes it from the singular approve_changeset without naming it. It never explicitly names the alternative, so the differentiation is implied rather than stated.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The context of use is clear (the preview card's 'Approve all' button, requiring the view-issued ui_nonce), but there is no explicit guidance on when to pick this over approve_changeset or revert_all_changesets, nor any exclusion conditions. Usage is inferable from the button framing rather than 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.

Resources