Skip to main content
Glama

settlement-date

Settlement date for a trade date: US equities T+1 on NYSE and Federal Reserve days, or T+n on a caller calendar — Computes the settlement date for a trade date under US equities T+1 (17 CFR 240.15c6-1, compliance date 2024-05-28) counting only days when the NYSE and the Federal Reserve Banks are open, or T+n on a named or caller calendar, and checks an asserted settlement date. The settlement-day rule (NYSE and Reserve Banks both open, so Columbus Day and Veterans Day are skipped) is our inference, not a publ

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": {
      "settlement": "<settlement>",
      "tradeDate": "<tradeDate>"
    },
    "name": "settlement-date"
  }
}

Input Schema

NameRequiredDescriptionDefault
weekendNoNon-business weekdays, 0=Sunday..6=Saturday. Default [0, 6]; use [5, 6] for a Friday/Saturday weekend.
calendarNoNamed holiday calendar with a source and supported date range (outside it the answer is unsupported), weekends-only (Saturday/Sunday only), or caller (only the holidays you list).
holidaysNoExtra non-business dates YYYY-MM-DD (company closures, a calendar we do not carry).
cycleDaysNocustom only.
tradeDateYes
settlementYesus-equities: T+1 since 2024-05-28 on the us-equities-settlement calendar (2026-2028). custom: cycleDays on calendar/holidays/weekend.
claimedSettlementDateNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations, the description carries the full burden; it does disclose the substantive rule (counting only days when both NYSE and the Federal Reserve Banks are open, so Columbus Day and Veterans Day are skipped) and candidly flags that rule as an inference rather than a published rule. However, it is truncated mid-sentence and says nothing about return behavior, what happens when claimedSettlementDate mismatches, or how unsupported date ranges surface.

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 clause restates the title and is then immediately re-stated ('Computes the settlement date for a trade date under US equities T+1...'), which is wasted text. The final sentence is cut off mid-word, leaving the definition visibly incomplete rather than front-loaded and tight.

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?

For a 7-parameter tool with no output schema and no annotations, the description covers the two operational modes and the holiday-counting rationale, which is the core need. It is still incomplete: the truncated caveat and unspecified outcome for claimedSettlementDate leave an agent unsure what the call returns or how failures are reported.

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 71%, so the schema documents most parameters (weekend, holidays, cycleDays, calendar). The description adds real meaning for the settlement modes and the business-day counting logic that governs calendar/holidays/weekend, but says nothing about claimedSettlementDate's role beyond the phrase 'checks an asserted settlement date'.

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 names a precise verb and resource: it computes a settlement date from a trade date and can check an asserted settlement date, with two explicit modes (US equities T+1 vs T+n on a named/caller calendar). It is clearly distinguishable from a generic date utility, though it never names a sibling tool it should be preferred over.

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?

Mode selection guidance is implied by the description (US equities T+1 vs T+n on a caller/named calendar) and reinforced by the schema's settlement and calendar enums. There is no explicit statement of when to use this versus alternatives such as a general date-claim check, nor stated preconditions other than the calendar's supported range.

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