Skip to main content
Glama

Get your seller earnings and ledger statement for a period

seller_statement
Read-only

Gets your statement: sales, payable and paid-out earnings, payout key and platform fee, plus every ledger row on your account in the period with its quote and call, and the opening and closing balance. Use it to reconcile sales and earnings, or to audit what your account was charged. Use account_balance instead for just the current balance. Use job_status instead for one call by its proof id. Free: statements are never charged. Auth: Authorization: Bearer (POST /v1/accounts gives one). Errors (isError, error.code): 400 bad_time, 401 bad_api_key.

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

Input Schema

NameRequiredDescriptionDefault
toNoEnd of the period (exclusive): ISO 8601 date/time or Unix seconds; omit for now.
fromNoStart of the period (inclusive): ISO 8601 date/time or Unix seconds; omit for the beginning.

Output Schema

NameRequiredDescriptionDefault
sellerYes
payoutsNo
statementYesledger rows in the period (usd_micro)
payout_keyNo
sales_microNo
platform_feeNo
balance_microNo
batched_microNo
payable_microNo
paid_out_microNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Beyond readOnlyHint/openWorldHint, it adds non-obvious operational facts: the call is free (statements are never charged), it requires an API key passed as a Bearer token obtainable via POST /v1/accounts, and it can fail with 400 bad_time or 401 bad_api_key. Those cost, auth, and error semantics are not derivable from annotations or the schema.

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

Conciseness4/5

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

Front-loaded with the returned content, then alternatives, then cost, auth and errors — a sensible priority order with no filler sentences. It is dense and long-ish for one paragraph, with the ledger-row enumeration slightly crammed, but every sentence carries distinct information.

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?

An output schema exists, so return-value detail wasn't required, yet the description still names the key payload sections, and it covers prerequisites, cost, and failure modes. For a two-optional-parameter read tool, nothing an agent needs in order to call it correctly 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 description coverage is 100%, and the schema already spells out the inclusive/exclusive boundary semantics and ISO 8601 or Unix seconds formats. The description only frames them collectively as "the period" and notes the opening and closing balance, adding little beyond the structured fields — the baseline 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?

The description opens with a specific verb+resource ("Gets your statement") and enumerates exactly what it contains: sales, payable and paid-out earnings, payout key, platform fee, every ledger row with its quote and call, and opening/closing balance. This is precise enough to distinguish it from account_balance and job_status 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 Guidelines5/5

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

It names two concrete use cases (reconcile sales and earnings; audit what your account was charged) and explicitly routes the agent elsewhere: account_balance for just the current balance, job_status for one call by proof id. Both when-to-use and when-not-to-use are stated.

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