Skip to main content
Glama
zvmzaretsky

FabTally Utility Belt

by zvmzaretsky

Date math: durations & business days (paid $0.001)

datemath

Calculate date arithmetic: add or subtract ISO-8601 durations, find differences between datetimes, and count or add business days with configurable weekends and holidays.

Instructions

PAID $0.001. Calendar date math. op='add'/'subtract' an ISO-8601 duration (P1Y2M10DT2H30M) to a date; op='diff' two datetimes into chosen units; op='business-add' add business days (configurable weekend + holidays); op='business-diff' count business days between two dates. Without payment returns the x402 challenge; pass x_payment to settle.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
opYesadd | subtract | diff | business-add | business-diff
toNoEnd datetime for diff/business-diff.
dateNoBase date for add/subtract/business-add (ISO 8601).
daysNoBusiness days to add (business-add; may be negative).
fromNoStart datetime for diff/business-diff.
unitsNodiff units, e.g. ['days','hours'].
weekendNoWeekend weekdays (1=Mon..7=Sun; default [6,7]).
durationNoISO-8601 duration string or object for add/subtract.
holidaysNoISO dates to skip as holidays.
timezoneNoIANA zone for parsing/rendering.
x_paymentNox402 payment payload (base64) for this PAID tool. If supplied it is forwarded as the X-PAYMENT header to settle the $0.001 call and return the real result instead of a 402 challenge. Omit to get the price challenge first.
Behavior4/5

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

With no annotations provided, the description carries the transparency burden. It discloses the paywall behavior (x402 challenge) and that x_payment is required to settle the $0.001 fee, along with configurable weekend/holiday handling. It doesn't describe output format or edge cases, but the key behavioral traits are covered.

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 compact and front-loaded, starting with the payment notice and operation list. Every sentence adds functional information, and the structure maps cleanly to the schema's op property. 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?

Given the tool has 11 parameters and no output schema, the description covers all operations, parameter roles, and the payment challenge. It lacks explicit mention of return shape, but for a multi-mode calculation tool the core usage context is sufficiently complete.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so baseline is 3. The description adds semantic value by grouping parameters per operation (duration/date for add/subtract, from/to/units for diff, days/weekend/holidays for business-add/diff). This explains how parameters interplay beyond individual schema descriptions.

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 performs calendar date math with four explicit operation modes: add/subtract durations, diff datetimes, and business-day add/diff. It distinguishes itself from sibling tools like timezone and cron by specifically enumerating date-math operations and the ISO-8601 duration format.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description gives concrete usage patterns per operation (e.g., 'op='add'/'subtract' an ISO-8601 duration...'), and mentions the payment requirement and challenge flow. It does not explicitly compare to sibling tools or state when not to use it, but the self-contained usage guidance is clear.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/zvmzaretsky/fabtally-belt-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server