Skip to main content
Glama

Magento Execute Action

execute_action
Destructive

Execute Magento 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, readOnlyHint=false, so the safety profile is carried by structured data. The description adds a genuine behavioral fact beyond annotations: the body must be derived from a prior actions_details lookup. It does not say what gets changed irreversibly or what happens on a malformed body.

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 and workflow position, then numbered steps. Some redundancy ('REQUIRED', 'IMPORTANT', repeated 'xxxxxx' placeholders) and capitalized emphasis add noise, but nothing is bloated to the point of obscuring the instructions.

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 an open-world destructive tool with an effectively unconstrained body and an output schema, the description covers the two things an agent cannot infer: the mandatory prerequisite calls and where the body shape comes from. Remaining gaps (failure handling, reversibility) are secondary given the annotations and output schema.

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% for a single free-form nested 'body' object with additionalProperties=true, so the description must compensate. It partially does by directing the agent to call request='actions_details' to obtain the exact body structure and to 'follow the schema exactly', but it never names any field of the body itself.

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+resource ('Execute Magento action') and positions it as the final step of a workflow, which separates it from the read-only siblings query_contexts and query_data. What exactly an 'action' is stays abstract, but the execute-vs-query distinction is clear.

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?

Explicit sequencing: step 1 request='accounts', step 2 request='actions_details' with specific action ids, plus 'Always call step 2... before executing.' This is strong when-to-use guidance naming the prerequisite tool. It does not state when NOT to use it (e.g., use query_data for plain reads), which keeps it below a 5.

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.