Skip to main content
Glama

ScorpTech x402 Tools

Date Calc

date_calc
Read-onlyIdempotent

Calendar-correct date arithmetic in any IANA zone: add or subtract durations (ISO 8601 or plain English, months clamp to month end so Jan 31 + 1 month = Feb 28/29), exact difference between two dates (years / months / days breakdown plus total days / weeks / hours / seconds and ISO 8601), start / end of day / week / month / quarter / year, the Nth weekday of a month ("4th Thursday of November") and age / countdown. DST-aware. Offline. Returns JSON with: op, tz, date, to, direction, breakdown, human, iso8601. Price: $0.001 USDC per successful call (x402, Base or Solana). Same tool over HTTPS: GET https://scorptech.it.com/api/x402/v1/date-calc

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "date_calc"
  }
}

Input Schema

NameRequiredDescriptionDefault
nNoFor nthWeekday: 1..5, or -1 for last
opNoadd
toNoSecond date for op=diff
tzNoUTC
dateNoBase date / time (ISO 8601, epoch, or text like "2026-03-01 09:00"); default now
unitNoFor startOf / endOfday
clampNoClamp month / year additions to the last valid day (false = overflow like PHP / JavaScript)
weekdayNoFor nthWeekday
durationNoFor add / subtract: P1M2D, "3 weeks 2 days", "-90 minutes"
weekStartNomonday

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior5/5

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

Goes well past the annotations (readOnly/idempotent/non-destructive) by disclosing the payment model ($0.001 USDC per successful call via x402 on Base or Solana), the HTTPS mirror, DST awareness, deterministic offline computation, month-clamping semantics with a worked example, and the exact JSON keys returned. Those are precisely the auth/cost and edge-case behaviors an agent cannot infer from structured fields.

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?

A single front-loaded sentence packs the operation list, then a short second block covers output keys, pricing, and the HTTPS endpoint. Dense but every clause carries information; only the parenthetical PHP/JavaScript comparison and the endpoint URL are arguably marginal for tool selection.

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 10-parameter, zero-required tool with no output schema, the description compensates by listing the returned JSON fields and explaining the tricky parameters. Remaining gaps are minor: weekStart, tz default, and the less common unit values (hour, minute, decade) are undocumented anywhere.

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?

With 70% schema coverage the baseline is already decent, and the description adds real meaning: duration accepts ISO 8601 or plain English, clamp explains Jan 31 + 1 month = Feb 28/29, and the nth-weekday phrasing maps to n/weekday. It omits some enum members the schema allows for unit (hour, minute, isoWeek, decade) and never mentions weekStart or the to parameter by name.

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?

Names a specific verb+resource (calendar-correct date arithmetic in any IANA zone) and then enumerates the exact operations: add/subtract durations, diff, startOf/endOf, nthWeekday, age/countdown. An agent can tell immediately that this is the date-math tool rather than the many numeric siblings (wage_calc, bond_calc, cidr_calc) it sits beside.

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 operation enumeration effectively tells an agent which case maps to which op (e.g. '4th Thursday of November' → nthWeekday, two dates → diff), and the notes on English-vs-ISO durations and month clamping give concrete usage context. It stops short of explicit when-not guidance or naming a sibling alternative, so it does not reach the top band.

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