Skip to main content
Glama

Search returns

search_returns
Read-onlyIdempotent

Find returns in this store, newest activity first. Filter by order number, RMA, customer name or email, and/or status. Excludes onboarding test returns unless include_test is true.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "search_returns"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
queryNoOrder number (e.g. #1001), RMA, customer name or email.
cursorNonext_cursor from a previous call.
statusNoOnly these statuses. REQUESTED = awaiting review.
include_testNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already establish readOnly, idempotent, non-destructive, closed-world behavior, so the base bar is low. The description nonetheless adds real behavioral facts not in the annotations: result ordering (newest activity first) and the default exclusion of onboarding test returns. Pagination mechanics are only implied via the cursor parameter.

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?

Three short sentences, front-loaded with the verb and scope, then filters, then the exclusion caveat. No filler and nothing repeated from the schema.

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 zero-required-parameter, read-only search tool with a fully described safety profile in the annotations, the description covers scope, filtering, ordering, and default exclusions. With no output schema, it could say more about what a result entry contains or how paging terminates, but no critical calling information is missing.

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 60%, so the schema carries most of the meaning for query, cursor, and status. The one genuine addition is the semantics of include_test, which is otherwise undocumented in the schema. limit's bounds come from the schema, not the description, and the description adds no syntax or format guidance beyond what the properties already state.

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?

Opens with a specific verb+resource and scope: "Find returns in this store, newest activity first." The filtering clause makes clear this is a list/search operation rather than a single-record fetch, which implicitly separates it from get_return. It never names a sibling explicitly, so it stops short of the top band.

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?

Gives clear operating context by enumerating the allowed filter axes (order number, RMA, customer name/email, status) and a data-scope rule (test returns excluded by default). There is no explicit statement of when to prefer a sibling such as get_returns_overview or get_return, so routing is left 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