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. Price: $0.001 USDC per successful call (x402, 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.6/5.0
Behavior5/5

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

The description contributes substantial context beyond annotations: DST-aware computation, calendar-correct month-end clamping semantics with the Jan 31 example, and the $0.001 USDC x402 payment requirement per successful call plus an HTTPS fallback endpoint. The pricing/payment disclosure is exactly the kind of operational trait annotations cannot express. Minor tension: 'Offline.' sits oddly next to openWorldHint=true and an on-chain payment step, but this is a scoping nuance rather than a contradiction.

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?

The core capability statement is front-loaded and the trailing clause about pricing and the HTTPS endpoint is operationally useful rather than filler. It is a dense single run-on sentence, though, which slightly hurts scannability for a tool with six operating modes.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/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 covers every op mode, input formats, edge-case semantics (clamping, DST), and payment mechanics. What an agent needs to invoke it correctly and anticipate costs is present.

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 70%, so the schema documents most parameters, but the description adds meaning: English duration parsing ('3 weeks 2 days'), negative durations, and explicit clamping/overflow behavior for month additions. It doesn't clarify remaining gaps such as weekStart semantics or that date defaults to now, keeping it below a 5.

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?

Opens with a specific verb+resource ('Calendar-correct date arithmetic in any IANA zone') and enumerates the operations covered (add/subtract durations, diff, start/end of period, nth weekday, age/countdown). An agent can match a task to this tool without opening the schema, and the op set indirectly distinguishes it from siblings like day_count or timezone_convert.

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 the agent which sub-task each op handles (e.g. 'start / end of day / week / month / quarter / year' maps to startOf/endOf), giving clear usage context. It does not name sibling alternatives or state exclusions (e.g. when to use rrule_expand instead of nthWeekday), so it stops short of explicit routing.

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