Skip to main content
Glama
stablevoy-mcp

stablevoy-mcp

Official

List invoices

list_invoices
Read-onlyIdempotent

List invoices newest first to find one when you have no id. Filter by status, source, reference, or creation date, and page through results per store.

Instructions

Lists invoices newest first, to find invoices when you have no id. Needs a store key (npx stablevoy-mcp login). All filters are optional and combine: status, source, search (an invoice id or the start of the reference), createdFrom and createdTo (UTC days, both included) and limit (1 to 100, 20 by default). Each call returns one page per store: its name, invoices with the fields of get_invoice, and nextCursor. For the next page pass nextCursor as cursor with the same store. No match is an empty list. For one invoice by id use get_invoice; for totals of a period use summarize_payments. 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": "list_invoices"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoInvoices per page, 20 by default.
storeNoStore id or exact store name from list_stores. Needed only when several stores are connected.
cursorNonextCursor of the previous page, with the same store.
searchNoInvoice id or the start of the reference.
sourceNoHow the invoice was made: payment_link, woocommerce, edd, whmcs, api_key or not_recorded.
statusNoawaiting_payment, confirming, paid, overpaid, underpaid, paid_late, expired, on_hold or cancelled.
createdToNoLast UTC day, YYYY-MM-DD.
createdFromNoFirst UTC day, YYYY-MM-DD.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.2.0
    • changedInput schema / properties / status / description
      Previous value: -"awaiting_payment, confirming, paid, overpaid, underpaid, paid_late, expired or on_hold."New value: +"awaiting_payment, confirming, paid, overpaid, underpaid, paid_late, expired, on_hold or cancelled."
  2. First observedv0.1.0

TDQS

A4.8/5.0
Behavior5/5

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

Beyond the read-only/idempotent annotations, the description discloses pagination shape (one page per store, pass nextCursor as cursor with the same store), the empty-result behavior, and the error contract including a concrete rate_limited example with a wait time. It also flags the auth requirement, which annotations do not cover.

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 purpose, then prerequisites, filters, return shape, alternatives, and errors in a logical order. Dense but nearly every sentence carries information; minor redundancy in repeating the limit range/default already in the schema.

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?

With no output schema, the description compensates by describing the return payload (per-store name, invoices with get_invoice fields, nextCursor) and pagination. For an eight-parameter list tool with fan-out across stores, the error and paging behavior are fully covered.

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 baseline is 3, but the description adds real semantics: filters combine conjunctively, date bounds are UTC days and both inclusive, search matches an id or the start of a reference, and cursor must be paired with the same store. It slightly restates limit and default already present in 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?

States a specific verb and resource plus ordering ('Lists invoices newest first') and a use condition ('to find invoices when you have no id'), which cleanly separates it from get_invoice. An agent can identify the tool from the first sentence alone.

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 alternatives with conditions: 'For one invoice by id use get_invoice; for totals of a period use summarize_payments.' It also names the prerequisite (store key via npx stablevoy-mcp login) and states that all filters are optional and combine.

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