Skip to main content
Glama

Approve a return

approve_return
Destructive

Approve one REQUESTED return in Shopify, the same as clicking Approve in ForthRoute. The customer is emailed, and a prepaid label may be purchased according to the store's label settings. Does not issue the refund.

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": "approve_return"
  }
}

Input Schema

NameRequiredDescriptionDefault
return_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Beyond the annotations, the description discloses key side effects: the customer is emailed, a prepaid label may be purchased depending on store label settings, and no refund is issued. These details add meaningful behavioral context for a destructive, open-world mutation.

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?

The description is three short sentences with the core action and scope front-loaded. Every sentence adds useful information about state, side effects, or refund behavior.

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 a one-parameter mutation with supporting annotations, the description covers the main side effects and explicitly rules out refund issuance. It could be more complete by describing the expected response or error behavior, but the essential call context is present.

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?

The sole parameter is return_id, but the schema provides only an integer type and minimum with 0% description coverage. The description implies the ID refers to a REQUESTED return, but it does not explain where to obtain the ID, expected format, or validation behavior, so it does not compensate for the low schema coverage.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb and resource: approve one REQUESTED return in Shopify. It also distinguishes the action from a refund and positions it as equivalent to clicking Approve in ForthRoute, so an agent can identify the operation without opening the schema.

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?

The description gives clear usage context by limiting the action to a REQUESTED return and noting that it does not issue the refund. It does not explicitly direct the agent to decline_return for rejection or get_return for inspection, so sibling routing is implied rather than fully specified.

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