Skip to main content
Glama
stablevoy-mcp

stablevoy-mcp

Official

Sum up invoices and payments for a period

summarize_payments
Read-onlyIdempotent

Aggregate invoices over a UTC date range to get status counts, invoiced and received USD totals, and payment amounts per network and token, avoiding manual invoice paging.

Instructions

Sums up the invoices created in a period, instead of paging through list_invoices. Needs a store key (npx stablevoy-mcp login). It returns how many invoices are in each status, invoicedUsd (cancelled and expired left out), receivedUsd (confirmed payments that passed sanctions screening) and the money per network and token. Pass either period or both createdFrom and createdTo as UTC days. A period together with dates, or only one of the two dates, is refused. One call covers at most 92 days; ask for a year in four quarters. Without store and with several stores you get one summary per store plus a total. Use list_invoices to see the invoices themselves. A failure comes back as an error with its code and what to do, for example rate_limited with the seconds to wait.

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

Input Schema

NameRequiredDescriptionDefault
storeNoStore id or exact store name from list_stores. Needed only when several stores are connected.
periodNoA ready-made range of UTC days ending today. Leave out when giving dates.
createdToNoLast UTC day, YYYY-MM-DD, included.
createdFromNoFirst UTC day, YYYY-MM-DD, with createdTo.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.3.0

TDQS

A4.8/5.0
Behavior5/5

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

Beyond the annotations (which already declare readOnly, idempotent and non-destructive), the description adds the auth prerequisite ("Needs a store key (npx stablevoy-mcp login)"), the 92-day ceiling, the aggregation behavior across stores, and the error contract ("a failure comes back as an error with its code and what to do, for example rate_limited with the seconds to wait"). These are operational facts an agent cannot infer from the structured fields.

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?

It is dense but front-loaded: purpose and the list_invoices contrast come first, then auth, then return shape, then parameter rules. Almost every sentence carries a distinct constraint, though the return-shape and error-handling sentences could be tightened slightly for length.

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, and the description compensates by naming the return fields (per-status counts, invoicedUsd with cancelled/expired excluded, receivedUsd limited to screened confirmed payments, money per network and token) plus the multi-store total. Combined with auth, limits, and error behavior, an agent has everything needed to call it correctly.

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 the schema already documents each parameter's format. The description still adds value the schema cannot express: the mutual-exclusion rule between period and createdFrom/createdTo, the refusal on conflicting inputs, and the 92-day span limit. It does not, however, restate the enum values or date pattern, leaving that to the schema.

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 and resource ("Sums up the invoices created in a period") and immediately contrasts it with the sibling it replaces ("instead of paging through list_invoices"). An agent can distinguish it from list_invoices and get_invoice without opening any 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 states when to use this tool versus the alternative ("Use list_invoices to see the invoices themselves") and gives explicit routing rules for the period parameter: pass either period or both dates, never both, never only one. It also gives a workaround for the 92-day cap ("ask for a year in four quarters") and describes multi-store behavior when no store is given.

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