Skip to main content
Glama

Decline a return

decline_return
Destructive

Decline one REQUESTED return in Shopify, the same as clicking Decline in ForthRoute. The customer is emailed.

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": {
      "return_id": "<return_id>"
    },
    "name": "decline_return"
  }
}

Input Schema

NameRequiredDescriptionDefault
reasonNoOTHER
return_idYes
message_to_customerNoOptional note included in the decline email.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and openWorldHint=true, so the write-danger is partly covered. The description adds genuinely new behavior: the customer is emailed as a consequence, and only returns in REQUESTED state can be declined. It does not cover irreversibility or whether the declined state can be undone.

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?

Two short sentences, front-loaded with the action and scope, followed by the key side effect. There is no filler and every clause carries information.

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?

For a destructive, non-idempotent mutation that emails a customer, the definition covers the core action and one side effect but omits what state the return ends in, whether the email is sent on failure, and the meaning of the reason options. Adequate but with clear gaps given no output schema to lean on.

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

Parameters2/5

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

Schema description coverage is only 33% across three parameters. The description says nothing about the reason enum values, what each reason means to the customer email, or how return_id relates to the single-return constraint, so it does not compensate for the coverage gap; only message_to_customer is documented, and that in the schema.

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 ("Decline one ... return") with a cardinality and state qualifier ("one REQUESTED return") plus a concrete real-world analogue ("the same as clicking Decline in ForthRoute"). The verb naturally contrasts with the sibling approve_return, though no sibling is named explicitly.

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 word "REQUESTED" implies the return must be in that state before declining, but the description never states when to reach for this versus approve_return or get_return, nor any exclusion or precondition failure case.

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