Skip to main content
Glama
stablevoy-mcp

stablevoy-mcp

Official

Read an invoice

get_invoice
Read-onlyIdempotent

Fetch a single invoice by ID to check its status, USD amount, reference, key dates, hold reason, networks, and every payment received, without pagination.

Instructions

Gets one invoice by its id: status, amountUsd, price, reference, dates (createdAt, expiresAt, paidAt), holdReason, networks and every payment received, with no paging. Needs a store key (npx stablevoy-mcp login). price is null for a dollar invoice; otherwise it holds the currency, amount and the rate that gave amountUsd. The id comes from create_invoice, list_invoices or the merchant. Without store every connected store is asked; an id no store has gives not_found. To find invoices by status, reference or date, use list_invoices. 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

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "invoiceId": "<invoiceId>"
    },
    "name": "get_invoice"
  }
}

Input Schema

NameRequiredDescriptionDefault
storeNoStore id or exact store name from list_stores. Needed only when several stores are connected.
invoiceIdYesThe invoice id.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already cover read-only, idempotent, non-destructive and open-world behavior, yet the description adds real context beyond them: no paging, a required store key with the login command, the multi-store fallback ('every connected store is asked'), the not_found outcome, and the error shape with codes such as rate_limited plus a wait hint. The only gap is that it does not show an actual error payload structure, which is minor given the careful prose.

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 and returned fields, then prerequisites, then the alternative. It is dense and runs long in a single paragraph, but virtually every clause carries actionable information; a slight structural break for the auth and error notes would improve scanning.

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 enumerating the fields returned and explaining the special price semantics, plus covering auth, multi-store resolution, failure modes and the not_found case. Nothing an agent needs to call this correctly is missing.

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 baseline would be 3, but the description adds genuine semantics the schema lacks: what happens when store is omitted (all connected stores are queried), what a miss produces (not_found), and that price being null identifies a dollar invoice while a non-null price carries currency, amount and rate. That is meaning beyond the schema, not repetition.

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 ('Gets one invoice by its id') and immediately enumerates the returned fields (status, amountUsd, price, reference, dates, holdReason, networks, payments, no paging). This makes it unmistakable against the sibling list_invoices, which is named explicitly as the multi-result alternative.

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?

Gives concrete sources for the id (create_invoice, list_invoices, or the merchant) and an explicit exclusion: 'To find invoices by status, reference or date, use list_invoices.' The when-not condition is stated rather than implied, so routing is unambiguous.

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