Skip to main content
Glama

finance_payment_terms

Read-only

Invoice payment terms and due dates — Turns invoice terms like net 30, 2/10 net 30, net 45 EOM or due on receipt into the exact due date and early-payment discount deadline, moved off weekends and US federal holidays, with days until due or days overdue, the discount amount for a given invoice total, and the annualized cost of skipping the discount (about 37% a year for 2/10 net 30). Offline, instant. Price: $0.002 USDC (Base, via x402).

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": "finance_payment_terms"
  }
}

Input Schema

NameRequiredDescriptionDefault
termsNoe.g. 2/10 net 30, net 45, net 30 eom, due on receipt (default net 30)
adjustNonext (default) | prev | none
amountNooptional invoice total
holidaysNous (default) | none
invoice_dateNoYYYY-MM-DD (default today)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior5/5

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

Annotations already cover the safety profile (readOnlyHint true, destructiveHint false), and the description adds context the annotations do not: the computation is offline and instant, the result is date-adjusted off weekends and US federal holidays, and invocation requires payment of $0.002 USDC on Base via x402. That payment/auth prerequisite is exactly the kind of operational fact an agent needs before calling.

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?

The purpose and transformation are front-loaded in a single dense sentence, followed by short, high-value addenda about latency and price. It is verbose but every clause carries information; only the illustrative 'about 37% a year for 2/10 net 30' example is arguably padding.

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 carries the return-value burden and does so by enumerating due date, discount deadline, days until due/overdue, discount amount, and annualized cost. All five parameters are described in-schema, defaults are noted for terms, invoice_date, and adjust, and the payment requirement is disclosed, leaving no material gap for a zero-required-parameter calculator.

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 description coverage is 100%, so the schema already documents all five parameters, which sets the baseline at 3. The description adds modest meaning by listing acceptable term formats and referencing the weekend/holiday shifting that underpins the 'adjust' and 'holidays' parameters, but it does not explain the next/prev/none semantics or the amount field's effect beyond what the schema states.

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?

The description names a specific resource and transformation: invoice payment terms (net 30, 2/10 net 30, net 45 EOM, due on receipt) converted into an exact due date and discount deadline. The output surface (days until due/overdue, discount amount, annualized cost of skipping) is stated explicitly, so an agent can distinguish this from generic calculators like finance_loan_calc or finance_invest_calc without opening the schema.

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 strongly implied by the input-to-output framing, and the 'Offline, instant' note tells the agent this is a cheap deterministic calculation rather than a lookup. However, the description never states when to prefer this over a sibling, gives no exclusions, and does not mention how to proceed if the terms string is unparseable; routing is left to inference.

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