Skip to main content
Glama

WooCommerce MCP by InsightfulPipe

WooCommerce Execute Action

execute_action
Destructive

Execute WooCommerce action (Step 3 (FINAL) of workflow).

REQUIRED: Complete these steps first using query_contexts:

  1. request='accounts' - Get workspace_id, brand_id AND available_actions

  2. request='actions_details' with actions=['xxxxxx', 'xxxxxx', 'xxxxxx'] - Get detailed body structure for specific action(s) using actions from available_actions

IMPORTANT: Always call step 2 to see the exact body structure before executing.

Rely on info from steps 1-2 to construct the action body. Follow the schema exactly.

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": {
      "body": "<body>"
    },
    "name": "execute_action"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, openWorldHint=true and readOnlyHint=false, so the safety profile is carried by structured data. The description adds workflow-dependency context (body must be derived from prior calls) but says nothing about irreversibility, permissions, side effects, or confirmation expectations for a destructive open-world write.

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 workflow position and numbered prerequisites; each line carries instruction value. Slightly padded by the repeated 'xxxxxx' placeholders and the redundant IMPORTANT/REQUIRED emphasis, but overall tight.

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?

An output schema exists, so return values need not be explained, and the description adequately covers the nontrivial prerequisite chain for a destructive free-form dispatcher. The gap is that it never characterizes the mutation's blast radius, leaving the agent dependent on annotations alone.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0% and the single 'body' parameter is an unconstrained open object (additionalProperties: true), so the description must carry the load. It does useful work by directing the agent to obtain the exact body structure from query_contexts actions_details, but it provides no field-level semantics, and 'Follow the schema exactly' is unhelpful given the schema imposes no structure.

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 (execute) and resource (WooCommerce action) and positions itself as the final execution step of a three-step workflow, which distinguishes it from the read-oriented siblings (query_contexts, query_data). It never says what an 'action' concretely is, but the workflow framing makes the role unambiguous.

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?

Explicitly names the prerequisite tool (query_contexts) and the exact request values ('accounts', then 'actions_details' with actions from available_actions), and demands step 2 always precede execution. It gives strong 'when to use / how to prepare' guidance but no 'when not to use' or failure-mode guidance.

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.