Skip to main content
Glama

Roll a date to a business day (modified following etc.)

adjust_date
Read-only

Rolls a date that falls on a weekend or holiday using a business-day convention: following, modified_following, preceding, modified_preceding. Typical for payment, coupon and invoice due dates. Deterministic, no AI. Price: $0.001 USDC per call via x402 (Base); the first 5 calls per day per client are free.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dateYesDate YYYY-MM-DD
calendarsNoComma list of calendars; a day is a business day only if open in all. XNYS (NYSE), FED (Fedwire/FedACH), TARGET2 (EUR), UK-ENG. Aliases: NYSE, US, ACH, EUR, UK. Default FED.
conventionNofollowing | modified_following | preceding | modified_preceding. Default modified_following

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations cover only readOnlyHint and openWorldHint; the description adds genuinely new behavior: deterministic/no-AI execution and a concrete cost model ($0.001 USDC per call via x402 on Base, first 5 calls/day per client free), including an implicit rate limit. It omits what happens under modified conventions when consecutive days are closed, but adds real value beyond the annotations.

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?

Purpose and scope are front-loaded in the first clause, conventions follow, then use cases, then pricing. Every sentence earns its place with no filler or redundancy.

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?

For a small, deterministic, read-only computation tool with no output schema, the description covers purpose, conventions, calendars via schema, use cases and cost. It could note the return value shape (the adjusted date), but nothing an agent needs to select or call the tool correctly is missing.

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% and each parameter, including calendar aliases and the convention default, is documented in the schema. The description merely repeats the four convention names already listed in the schema and adds no semantics (e.g. how modified_following differs from following), so 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?

Specific verb+resource: it states that it rolls dates landing on weekends/holidays using a named business-day convention, and lists the four conventions. It implies but never explicitly distinguishes itself from close siblings like is_business_day (check only) or add_business_days (shift by N), so it falls short of a 5.

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?

"Typical for payment, coupon and invoice due dates" gives domain context for when it is appropriate, which is more than nothing. It gives no when-not guidance and never routes the agent to a sibling tool such as settlement_date or is_business_day, so usage remains implied rather than explicit.

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