Skip to main content
Glama

Confita

Find orders

find_orders
Read-onlyIdempotent

For shop owners: search the order book by status, due dates, the days money was paid, a customer, text, or needs_action (orders waiting on the seller). Returns up to 20 compact rows by due date, each with its id, number, revision, status, items, total and what is still owed. One order in full is get_order.

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

Input Schema

NameRequiredDescriptionDefault
sortNoBy due time: oldest first (default) or newest first.
textNoWords to look for in the customer's name or contact, or an order number.
cursorNoThe `next_cursor` of the page before.
due_toNoDue on or before this day.
statusNoOnly orders in these statuses. Left out, every status except draft.
paid_toNoOnly orders with a payment made on or before this day.
customerNoOne customer's orders, by name or id (cus_...).
due_fromNoDue on or after this day on the shop's clock. For example "2026-12-01" with due_to "2026-12-07" for that week.
paid_fromNoOnly orders with a payment made on or after this day, on the shop's clock. For example "2026-11-01" with paid_to "2026-11-30" for orders paid in November.
needs_actionNoOnly orders waiting on the seller: requests to answer, orders with no time, money to settle.

Output Schema

NameRequiredDescriptionDefault
nextNo
errorNo
ordersNo
choicesNo
outcomeNo
timezoneNo
next_cursorNo

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 declare readOnlyHint, idempotentHint, non-destructive and closed-world, so the safety profile is covered. The description adds genuinely useful behavior beyond that: a hard result cap of 20 rows, the sort order (by due date), and the exact fields each compact row carries, which tells the agent when it must follow up with get_order. It stops short of stating pagination semantics (that the cursor walks pages of 20).

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 sentences, front-loaded with audience and purpose, then the filter dimensions, then the return contract and the sibling hand-off. No filler and nothing repeated from the schema verbatim.

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?

With 10 optional parameters, full schema descriptions and an output schema, the description covers what an agent needs: scope, filters available, row limit, sort order, and where to go for a single record. The only meaningful gap is that the 20-row cap's interaction with the cursor (paging) is not described.

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 the schema already documents every filter, including enum meanings and the default that drafts are excluded. The description's paraphrase of needs_action and the filter list adds little beyond the structured fields, so the baseline of 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?

Names a specific verb and resource (search the order book) and enumerates the filter dimensions: status, due dates, payment dates, customer, text, needs_action. It also states the audience (shop owners) and the return shape (up to 20 compact rows by due date), and explicitly contrasts itself with get_order for full detail, so an agent can distinguish it from siblings without opening a 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?

Explicitly routes the full-single-order case to get_order and scopes the tool to shop owners, which is real when-to-use guidance. It does not spell out when not to use it (e.g., browsing a customer's own order history, which get_my_orders likely covers), leaving one inference to the agent.

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