Skip to main content
Glama

search_orders

Read-onlyIdempotent

Find orders by order number, customer email, or name, with optional status and date filters. Returns newest-first summaries; use get_order for payment, refund, and timeline details.

Instructions

Search orders by order number, customer email or customer name (substring or fuzzy match), optionally filtered by status and creation date. Newest first. Returns order summaries (number, status, total, customer). Use get_order for payments, refunds and the timeline.

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_orders"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoHow many orders to return (1-100).
queryNoOrder number, customer email or name, e.g. "SF-10042", "maya@", "Patel". Omit to list recent orders.
statusNoOnly orders in this status.
to_dateNoCreated on or before this UTC date (YYYY-MM-DD).
from_dateNoCreated on or after this UTC date (YYYY-MM-DD).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.7/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world behavior, so the safety profile is covered. The description adds genuinely new behavior: substring/fuzzy matching semantics, newest-first ordering, and the fact that results are summaries rather than full order objects. It does not mention pagination beyond the limit parameter, which keeps it just short of a 5.

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 tight sentences: capability with scope, ordering and return shape, then the sibling redirect. No filler and the most important routing information is front-loaded rather than buried.

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?

There is no output schema, but the description names the returned summary fields, which the agent needs in order to decide whether a follow-up get_order call is required. For a five-parameter read-only search with full schema coverage and annotations, nothing material is missing.

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

Parameters4/5

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

Schema coverage is 100%, so baseline would be 3, but the description adds matching semantics not present in the schema ('substring or fuzzy match') and clarifies that the query field spans three different identifiers. The date and status filters remain fully schema-documented only.

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 and resource (search orders) plus the exact match fields (order number, customer email, customer name), the optional filters, the sort order (newest first), and the return payload (number, status, total, customer). It also distinguishes itself from get_order, which covers payments, refunds and the timeline.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly routes the agent to get_order for payments, refunds and timeline detail, and the schema covers the omit-query case for listing recent orders. Both the when-to-use and the alternative are named rather than inferred.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.