Skip to main content
Glama

Value Date Calculator

value_date
Read-only

Calculate the value/settlement date for a payment.

Determines when a payment will settle based on:

  • Source and destination country holiday calendars

  • Weekend conventions (Sat/Sun or Fri/Sat)

  • Currency center holidays (if FX conversion involved)

  • Settlement convention (T+0, T+1, T+2)

Examples: value_date("US", "DE") value_date("US", "DE", "fx_spot", "USD", "EUR") value_date("DE", "FR", "sepa") value_date("US", "US", "wire", from_date="2026-07-03")

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
from_dateNoStart date, YYYY-MM-DD (default: today). You do not know today's date: omit this argument unless the user named a specific send date. If the user's date is relative ("the 20th", "next Friday", "month-end"), read the `today` block in any response from this tool, bank_holidays or is_business_day_check and resolve against that.
dest_countryYesReceiver's country, ISO 3166-1 alpha-2 country code (e.g. "DE").
base_currencyNoBase currency for FX, ISO 4217 (e.g. "USD"). Required when settlement_type is "fx_spot".
source_countryYesSender's country, ISO 3166-1 alpha-2 country code (e.g. "US").
settlement_typeNoOne of "wire" (T+0 domestic / T+1 international, the default), "fx_spot" (T+1 or T+2 depending on the pair), "sepa" (D+1), "sepa_instant" (T+0).wire
target_currencyNoTarget currency for FX, ISO 4217 (e.g. "EUR"). Required when settlement_type is "fx_spot".

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changed
    • addedInput schema / properties / base_currency / description
      Added value: +"Base currency for FX, ISO 4217 (e.g. \"USD\"). Required when settlement_type is \"fx_spot\"."
    • addedInput schema / properties / dest_country / description
      Added value: +"Receiver's country, ISO 3166-1 alpha-2 country code (e.g. \"DE\")."
    • addedInput schema / properties / from_date / description
      Added value: +"Start date, YYYY-MM-DD (default: today). You do not know today's date: omit this argument unless the user named a specific send date. If the user's date is relative (\"the 20th\", \"next Friday\", \"month-end\"), read the `today` block in any response from this tool, bank_holidays or is_business_day_check and resolve against that."
    • addedInput schema / properties / settlement_type / description
      Added value: +"One of \"wire\" (T+0 domestic / T+1 international, the default), \"fx_spot\" (T+1 or T+2 depending on the pair), \"sepa\" (D+1), \"sepa_instant\" (T+0)."
    • addedInput schema / properties / source_country / description
      Added value: +"Sender's country, ISO 3166-1 alpha-2 country code (e.g. \"US\")."
    • addedInput schema / properties / target_currency / description
      Added value: +"Target currency for FX, ISO 4217 (e.g. \"EUR\"). Required when settlement_type is \"fx_spot\"."
  2. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations declare readOnlyHint=true and openWorldHint=true, so safety is covered; the description adds genuine behavioral context beyond that, notably that relative dates must be resolved against the `today` block returned by this tool, bank_holidays, or is_business_day_check. It also spells out the settlement conventions (T+0/T+1/T+2, D+1) that govern the result, though it does not discuss error behavior for invalid country codes or unsupported pairs.

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?

Purpose is front-loaded in the first line, followed by a compact factor list and four illustrative calls; every element earns its place. The examples section is slightly long relative to the core content but remains skimmable and informative.

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 an output schema present, return values need no explanation, and the read-only annotations cover the safety profile. The description is largely complete for a 6-parameter computation tool, with the main residual gap being no explicit differentiation from adjacent siblings like settlement_eta and fx_timing_advisor.

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 six parameters including defaults and the FX-required currencies. The description's examples add positional-argument ordering (value_date("US", "DE", "fx_spot", "USD", "EUR")), which is a mild bonus over the schema, but it introduces no new semantics for individual parameters.

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?

States a specific verb and resource: calculating the value/settlement date for a payment, with the inputs that drive the result (holiday calendars, weekend conventions, settlement convention). Clear enough to distinguish from pure holiday/calendar lookups like bank_holidays or is_business_day_check, though it never explicitly contrasts itself with the close-sounding sibling settlement_eta.

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 bullet list of contributing factors and the four worked examples imply when the tool applies, and the settlement_type options give concrete usage modes. However, there is no explicit when-to-use/when-not statement and no routing to alternatives such as settlement_eta, payment_cutoff_times, or bank_holidays, leaving the agent to infer the boundary.

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