Skip to main content
Glama

Refuse an order

refuse_order
Destructive

Refuses an order and refunds it in full once the owner approves the money on approve_url; confirm_token then gives its status.

Input Schema

NameRequiredDescriptionDefault
siteYes
item_idYes
messageNoA note for the customer
restockNoPut stock back (default true)
plugin_idYes
confirm_tokenNo

Output Schema

NameRequiredDescriptionDefault
approve_urlNo
agent_messageNo
confirm_tokenNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedOutput schema / properties / agent_message
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / approve_url
      Added value: +{
      +  "type": "string"
      +}
  2. Changed2 schema fields changed
    • removedInput schema / properties / item_id / description
      Removed value: -"From get_lists"
    • removedInput schema / properties / plugin_id / description
      Removed value: -"From list_plugins"
  3. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "confirm_token": {
      +      "type": "string"
      +    }
      +  },
      +  "type": "object"
      +}
  4. Added

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already flag destructive=true, idempotent=false and openWorld=true; the description adds genuinely new behavioral context: the refund is full, it is gated on owner approval at approve_url, and status is later checked via confirm_token. It stops short of saying what happens if approval never arrives or whether the order becomes unrecoverable.

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?

A single dense sentence that front-loads the action, then the approval gate, then the status check. No filler and nothing redundant.

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?

An output schema exists so return values need not be explained, and the approval flow is covered. Still, for a destructive multi-site mutation with three required but undocumented identifiers, the description leaves the agent guessing how to supply site/plugin_id/item_id and what state the order ends in.

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 33%, with message and restock self-documented, and the description clarifies the role of confirm_token (status check). But site, plugin_id and item_id are unexplained, and approve_url is referenced as if it were a parameter although it is absent from the schema, which can confuse the caller.

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?

The description states a concrete verb and resource ('Refuses an order') and adds the refund consequence, so the effect is unambiguous. It does not explicitly contrast with the sibling refund_order or cancel_transfer, so differentiation is partial.

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 workflow is implied ('once the owner approves the money on approve_url'), which tells the agent this is a multi-step, non-immediate action. However, it never states when to pick this over refund_order or how to handle an unapproved order, leaving exclusions 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