Skip to main content
Glama

Open (unpaid) invoices

saga_open_invoices
Read-onlyIdempotent

Retrieve unpaid supplier or customer invoices with due dates, days overdue, and currency details, optionally as of a past date or filtered to overdue items only.

Instructions

Unpaid supplier invoices (kind=suppliers) or customer invoices (kind=customers), with due dates and days overdue. Foreign-currency invoices are included with currency and unpaid_currency. as_of (YYYY-MM-DD) gives the situation at a past date.

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": {
      "kind": "<kind>"
    },
    "name": "saga_open_invoices"
  }
}

Input Schema

NameRequiredDescriptionDefault
firmNoFirm code (folder name such as "0001"). Optional when only one firm is configured.
kindYes
as_ofNo
limitNoMaximum rows to return.
only_overdueNo
partner_codeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive, so the bar is low, yet the description still adds useful behavior: foreign-currency rows come back with currency and unpaid_currency, and as_of produces a point-in-time snapshot. It omits any note on limit/pagination or ordering.

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?

Three tight sentences, front-loaded with the resource and immediately followed by the kind variants and the time-travel caveat. The currency sentence is slightly clunky but earns its place.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/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 does sketch the returned fields (due date, days overdue, currency), but for a 6-parameter tool it leaves filtering behavior (only_overdue, partner_code) and row-limit semantics unexplained.

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 only 33%, and the description only meaningfully compensates for as_of, whose YYYY-MM-DD format the schema omits; kind is restated from the enum. firm, limit, only_overdue, and partner_code receive no added meaning, leaving half the surface undocumented.

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?

Names the concrete resource (unpaid supplier/customer invoices) and the fields returned (due dates, days overdue, currency), with the kind enum spelled out. It is specific enough to distinguish from the ledger/balance siblings, though it never explicitly contrasts itself with them.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

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

Usage is implied by the 'unpaid' scope and the as_of historical framing, but there is no explicit when-to-use versus alternatives (e.g., saga_partner_balances, saga_account_ledger) and no statement of exclusions or prerequisites.

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