Skip to main content
Glama

Get Return

get_return
Read-only

One customer or supplier return as its page shows it: status, the customer or supplier, the order it came from, warehouse, and every line with the quantity returned, received back or damaged (customer) or shipped out (supplier) and what is still to do. A customer return also lists its return receipts and credit notes. nextStep says what to do with it now.

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": {
      "returnId": "<returnId>"
    },
    "name": "get_return"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindNocustomer or supplier, to disambiguate a number both kinds use. Optional.
clientIdNoOptional client id (GUID) for operator (unpinned) credentials on 3PL tenants.
returnIdYesReturn id (GUID) or number from list_returns.

Output Schema

NameRequiredDescriptionDefault
kindNo
linesNo
numberNo
statusNo
nextStepNo
receiptsNo
returnIdNo
createdAtNo
partnerIdNo
settlementNo
creditNotesNo
partnerNameNo
warehouseIdNo
internalNoteNo
sourceOrderIdNo
warehouseNameNo
sourceOrderNumberNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, openWorldHint=false and destructiveHint=false, so safety is covered. The description adds domain meaning to the payload (returned vs received-back vs damaged, and that nextStep indicates the recommended action), but says nothing about not-found behavior or how the optional kind resolves a shared number beyond what the schema states.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

It is front-loaded and only a few sentences, but the bulk is a dense catalogue of return fields that the output schema already defines, delivered as one run-on sentence. Some of that space would be better spent on when to call it versus siblings.

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 read-only single-record fetch with full schema coverage and an output schema, the definition supplies the domain semantics needed to interpret the response. The remaining gap is selection guidance relative to sibling tools, not missing invocation detail.

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% and all three parameters carry their own descriptions, so the baseline is 3. The description's mention of "customer or supplier" echoes the kind parameter but adds no new syntax, format, or defaulting information beyond 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?

"One customer or supplier return as its page shows it" clearly names the resource and its single-record scope, and the enumeration of status, counterparty, source order, warehouse and lines makes the fetch unambiguous. It does not literally name a verb like "get" or "fetch", but the resource-and-scope phrasing is specific enough to distinguish it from a list or mutation tool.

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?

Usage is only implied: retrieving the detail of one already-known return. The description never states when to prefer this over list_returns (e.g., discovery by filters) or how it relates to receive_customer_return, and it does not repeat the schema's point that returnId comes from list_returns. Adequate but leaves routing 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