Skip to main content
Glama

Get unpaid orders

get_unpaid_orders
Read-only

Counts orders the seller has not been paid out for yet (awaiting marketplace settlement), per channel and by age, with a sample of the newest. Orders are windowed on order date, default the last 30 days; a very long window can time out on large sellers.

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

Input Schema

NameRequiredDescriptionDefault
sinceNoStart date (ISO, e.g. 2026-10-01, IST day). For "this month" send the 1st of the current month; for "last month" send its 1st with until = its last day. Default: 30 days ago.
untilNoEnd date (ISO, inclusive IST day). Default: today.
channelNoLimit to one channel. Default: all connected channels.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / since / description
      Previous value: -"Start date (ISO, e.g. 2026-10-01, IST day). Default: 30 days ago."New value: +"Start date (ISO, e.g. 2026-10-01, IST day). For \"this month\" send the 1st of the current month; for \"last month\" send its 1st with until = its last day. Default: 30 days ago."
  2. Added

TDQS

A4/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, non-destructive, closed-world), so the description's job is supplementary context, and it delivers: the pending-settlement definition, the date-windowing basis, and an explicit timeout risk on large sellers for long windows. A rate/limit edge case is disclosed, though nothing is said about how the sample size is chosen.

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?

Two tight sentences: the first states what is counted and how it is broken down, the second the windowing rule and its performance caveat. No filler, and the core purpose is front-loaded before the operational caveat.

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?

An output schema exists, so return values need not be spelled out, yet the description still usefully signals that the output is a count by channel and age plus a sample of the newest orders. With full schema coverage and clean annotations, the only remaining gap is the absence of sibling routing.

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 100%, so all three parameters, their defaults, the ISO/IST date format, and the channel enum are already fully documented in the schema. The description only restates the default 30-day window and that filtering is by order date, adding little syntax or meaning beyond the structured fields.

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?

The description uses a specific verb and resource ("counts orders the seller has not been paid out for yet") and defines the qualifier precisely (awaiting marketplace settlement), plus the aggregation dimensions (per channel, by age, sample of newest). That is far more specific than the title, but it never names a sibling such as get_payments_summary or get_orders_summary to sharpen the boundary.

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?

It gives clear operative context: orders are windowed on order date, the default window is the last 30 days, and a very long window can time out on large sellers — a real constraint that shapes how the agent should call it. It stops short of when-not-to-use guidance or naming an alternative tool for the adjacent questions.

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