Skip to main content
Glama

Check return eligibility

check_return_eligibility
Read-only

Check live with Shopify what on an order from a conversation can be returned: each line's returnable quantity, whether the return rules block it and the return reasons to choose from, the policy applied and whether a return is already open. permission: missing means the store has not granted Aide the returns permission. Changes nothing.

Input Schema

NameRequiredDescriptionDefault
orderIdYesThe order id, from get_conversation_orders or lookup_orders.
conversationIdYesThe Aide conversation id (`cnv_…`), from find_conversation.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already establish readOnly and non-destructive, but the description adds real value: it discloses the live Shopify lookup, the `permission: missing` condition meaning the store withheld returns permission, and reinforces 'Changes nothing'. It stops short of rate-limit or auth details, but coverage is strong.

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 the verb and the live-check framing, then a tight enumeration of returned facts. The single compound sentence is dense but every clause carries information; the trailing 'Changes nothing' is a useful safety note rather than padding.

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?

With no output schema, the description must convey the return contents, and it does so thoroughly (per-line quantities, rule blocks, reasons, policy, open-return flag, permission-missing case). An agent has everything needed to call and interpret it.

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%, so both parameters are already documented with their origins (get_conversation_orders/lookup_orders and find_conversation). The description adds no parameter-level detail beyond what the schema provides, so baseline 3 applies.

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?

States a specific verb (check) and resource (return eligibility) and then details exactly what is returned per line: returnable quantity, rule blocks, return reasons, policy applied, and open-return status. This clearly distinguishes it from write siblings like refund_order and cancel_order.

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?

Provides clear context for when it applies: verifying what can be returned on an order originating from a conversation, live against Shopify. It does not name alternative siblings or exclusions, but the scope is unambiguous.

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.