Skip to main content
Glama

Invoice due date from net terms

invoice_due
Read-onlyIdempotent

Due date for Net-N payment terms (calendar days, invoice date = day 0). Optional roll-forward past weekends and, with a jurisdiction or custom calendar, public holidays.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tzNoIANA timezone that defines "today" (e.g. Africa/Kampala). Default UTC.UTC
netYesNet-N payment terms in calendar days (Net 30 = 30).
rollNoRoll a weekend or holiday due date forward to the next business day. Default false.
workweekNoWorking week. Default mon-fri (Sat+Sun weekend).
invoiceDateNoISO date YYYY-MM-DD, or "today" (resolved in tz)today
jurisdictionNoHoliday jurisdiction id: US, GB, GB-SCT, GB-NIR, IE, FR, CA, AU, UG (alias UK for GB). No default: omit for no holiday calendar.
customHolidaysNoCustom organizational holiday calendar as ISO dates (mutually exclusive with jurisdiction)

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
answerYesThe calculated answer (kind-discriminated)
receiptYesAuditable receipt: inputs, timezone, convention, workweek, holiday calendar, exclusions, versions, stable result ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / net / description
      Added value: +"Net-N payment terms in calendar days (Net 30 = 30)."
    • addedInput schema / properties / roll / description
      Added value: +"Roll a weekend or holiday due date forward to the next business day. Default false."
  2. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and idempotentHint=true, covering safety. The description adds valuable behavioral context: the day-0 convention and the optional roll-forward past weekends/holidays. This goes beyond what annotations state and clarifies computation semantics without contradiction.

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

Conciseness5/5

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

The description is two concise sentences that front-load the core purpose and then add optional behavior. There is zero filler, and every word contributes to understanding the tool's function.

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

Completeness4/5

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

With 7 parameters (only 1 required) and an output schema present, the description covers the main behavior adequately. It explains the core computation and optional roll-forward. Minor omissions like the mutual exclusivity of jurisdiction and customHolidays are handled in the schema, so the description is complete for an agent to correctly invoke the tool.

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 baseline is 3. The description adds the 'invoice date = day 0' clarification and the concept of roll-forward, which are not explicitly in the schema's net or roll descriptions. However, this is modest added value since the schema already explains parameters well.

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 clearly states the tool computes a due date for Net-N payment terms, specifying the base (calendar days, invoice date = day 0) and the optional roll-forward behavior. This distinguishes it from sibling tools like add_days or business_days, which handle different date arithmetic. The verb 'Due date' and resource 'Net-N payment terms' are specific and unambiguous.

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?

The description implies a use case for payment terms with optional roll-forward, but does not explicitly state when to use this tool versus alternatives like business_days or add_days. There are no exclusions or explicit routing to siblings, leaving the agent to infer context from the Net-N terminology.

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