Skip to main content
Glama

BRAINIAC Trade Finance & Receivables Intelligence

Calculate invoice discounting

trade-finance_invoice-discounting-calculate
Read-onlyIdempotent

Calculate simple discount and proceeds from supplied face amounts, due dates, as-of date, and discount rate. Docs: https://www.brainiac.software/api/trade-finance/invoice-discounting-calculate Keywords: text, csv, file, parties, invoices, contracts, lettersOfCredit, documents, assignments, worldBank, asOf, discountRatePct, checkedAt, invoiceCount, items.

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": "trade-finance_invoice-discounting-calculate"
  }
}

Input Schema

NameRequiredDescriptionDefault
csvNocsv, string, length 0 to 200000. Optional.
asOfNoasOf, string, length 0 to 40. Optional.
fileNofile, object. Optional.
jsonNojson, string, length 0 to 200000. Optional.
textNotext, string, length 0 to 200000. Optional.
partiesNoparties, array. Optional.
invoicesNoinvoices, array. Optional.
contractsNocontracts, array. Optional.
documentsNodocuments, array. Optional.
worldBankNoworldBank, object. Optional.
assignmentsNoassignments, array. Optional.
discountRatePctNodiscountRatePct, number, from 0 to 100. Optional.
lettersOfCreditNolettersOfCredit, array. Optional.

Output Schema

NameRequiredDescriptionDefault
itemsNoitems. Array.
statusNostatus. String.
findingsNofindings. Array.
checkedAtNocheckedAt. String.
limitationsNolimitations. Array.
invoiceCountNoinvoiceCount. Number.
publicSourcesNopublicSources. Array.
amountInventedNoamountInvented. Boolean.
apiKeyRequiredNoapiKeyRequired. Boolean.
creditDecisionNocreditDecision. Boolean.
paidProviderUsedNopaidProviderUsed. Boolean.
financingApprovedNofinancingApproved. Boolean.
discrepancyInventedNodiscrepancyInvented. Boolean.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / properties / limitations / items / description
      Previous value: -"Item. String."New value: +"item. String."
  2. First observed

TDQS

C2.9/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=true, so the safety profile is covered. The description adds that this is a pure arithmetic calculation of discount and proceeds from supplied values, but it does not disclose what happens when invoices are omitted, whether the worldBank object triggers an external lookup (relevant given openWorldHint), or what currency/rounding conventions apply.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The opening sentence is well-formed and front-loaded, but the remainder is a URL plus a 15-term 'Keywords:' dump that merely restates parameter names already in the schema. That trailing noise adds bulk without information and dilutes the useful content.

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

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 13-parameter tool with deeply nested objects, the description omits the genuinely hard details: the discount basis/day-count convention (simple discount is ambiguous), how the invoices/contracts/documents/lettersOfCredit/assignments arrays relate to one another, and the aggregation logic. An output schema exists, so return shape needn't be described, but the calculation semantics are not adequately covered.

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 100%, so the schema already documents all 13 parameters including nested invoice and letter-of-credit fields. The description adds only a light mapping of asOf, dueDate, amount and discountRatePct to the calculation; it says nothing about how multiple invoices are aggregated or how discountRatePct is applied, so the baseline 3 applies.

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 first sentence names a specific verb (calculate) and specific outputs (simple discount and proceeds) plus the inputs that drive them (face amounts, due dates, as-of date, discount rate). It is clearly distinguishable in intent, though it never names which sibling calculator it is not (e.g. credit-exposure-calculate or receivable-aging-risk-analyze).

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

Usage Guidelines2/5

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

There is no when-to-use guidance at all: no prerequisites, no statement of when to prefer this over the other trade-finance calculation tools, and no indication of what a valid input set looks like despite all parameters being optional. The trailing keyword list does not substitute for usage direction.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources