Skip to main content
Glama

Partner balances

saga_partner_balances
Read-onlyIdempotent

Retrieve unpaid and overdue totals from open invoices and the general-ledger balance for a supplier or customer to reconcile partner accounts.

Instructions

Per supplier or customer: unpaid and overdue totals from open invoices, plus the general-ledger balance of the partner account for reconciliation.

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_partner_balances"
  }
}

Input Schema

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

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare read-only, idempotent, non-destructive and closed-world, so safety is covered. The description adds what is aggregated (unpaid/overdue totals plus GL balance) which is genuine context, but says nothing about pagination behavior, how the limit interacts with totals, or whether the two figures are computed as of the same date.

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?

A single front-loaded sentence that immediately establishes scope and return content with no filler. It is dense but readable; only the trailing 'for reconciliation' phrase is arguably soft justification rather than instruction.

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?

Five parameters with no output schema and thin schema descriptions means the definition should do more, especially around as_of, partner_code and how totals are scoped by firm. It adequately conveys the returned measures but is not complete enough for an agent to call it confidently in ambiguous cases.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is only 40%, so the description needs to carry parameter meaning and largely does not. The phrase 'per supplier or customer' hints at the kind enum, but as_of, partner_code, firm and limit are left entirely to the sparse schema, with no explanation of date semantics or whether partner_code filters or expands results.

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?

The description states a specific resource and what it returns: unpaid and overdue totals from open invoices plus the partner account's GL balance, split per supplier or customer. An agent can tell this is an aggregated reconciliation view rather than a raw invoice list. It stops short of naming how it differs from siblings such as saga_open_invoices or saga_partners.

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 only implied through the word 'reconciliation' and the mention of open invoices; there is no explicit statement of when to pick this over saga_open_invoices or saga_account_ledger, nor any prerequisite or exclusion. An agent can guess the intent but is not routed.

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