Skip to main content
Glama

Approve an order action

approve_order_action
Destructive

Approve an order action waiting for approval (status pending_approval), as the signed-in teammate: Aide runs it on the Shopify store now, so a refund is paid and a cancellation happens. Agents can approve only refunds within the workspace's approval limit. The result is the action with its new status. Calling it again does not run the action twice: once it is no longer waiting for approval, the call is refused with not_pending_approval.

Input Schema

NameRequiredDescriptionDefault
actionIdYesThe order action id, from list_order_actions or list_conversation_order_actions.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true and openWorldHint=true, yet the description still adds substantial context: the approval executes immediately on the live Shopify store, produces a paid refund or an active cancellation, is gated by a per-workspace approval limit, and is idempotent-safe with a documented refusal code. That is well beyond what the annotations convey.

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-loads the verb and precondition, then consequences, limits, and idempotency in a compact run of sentences with no filler. The clause about the signed-in teammate and Aide running on the Shopify store is dense but carries real behavioral information.

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?

Covers the precondition, the real-world effect, the permission ceiling, the return value ('the action with its new status'), and the failure mode, which is everything needed for a one-parameter mutation tool with no 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 description coverage is 100% for the single actionId parameter, and the schema already points to list_order_actions / list_conversation_order_actions as sources. The description adds no format, prefix, or provenance detail beyond that, so the baseline 3 applies.

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 ('Approve') plus the resource and its required precondition state ('order action waiting for approval (status `pending_approval')'), and describes the downstream effect (refund paid, cancellation happens). It does not explicitly name the contrasting sibling reject_order_action, so differentiation is left partly to inference.

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 conditions: only actions in `pending_approval` can be approved, agents are limited to refunds within the workspace approval limit, and re-calling is refused with `not_pending_approval`. It stops short of directly telling the agent to use reject_order_action for the declining case, which is the one obvious alternative in this sibling set.

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.