Skip to main content
Glama

Agent Utils (x402)

US stock market (NYSE/Nasdaq) trading calendar

market_calendar

Is the US stock market open on a date? Early close? Next/previous N trading days, trading-day counts between dates, or the full holiday + early-close list for a year (2000-2100). Computed from NYSE holiday rules incl. announced ad-hoc closures. (Paid tool: $0.005 USDC per call via x402 on eip155:8453, eip155:137.)

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "mode": "<mode>"
    },
    "name": "market_calendar"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNoYYYY-MM-DD end for count (inclusive)
dateNoYYYY-MM-DD (status/next/previous)
fromNoYYYY-MM-DD start for count (inclusive)
modeYesstatus | next | previous | count | holidays
yearNoYear for holidays mode
countNoN trading days for next/previous (1-30)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does real work: it discloses the computation basis (NYSE holiday rules including announced ad-hoc closures), the supported year window (2000-2100), and the per-call cost and payment rails ($0.005 USDC via x402 on eip155:8453/137) — exactly the auth/billing context an agent needs before calling. What it omits is the return shape and behavior on out-of-range or non-trading dates, which matters since there is no output schema.

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?

Two sentences, front-loaded with the primary use case and backed by a compact parenthetical enumerating the remaining capabilities, followed by a separate pricing note. It is dense and slightly crammed into the parenthesis, but every clause carries information.

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 6-parameter, no-annotation, no-output-schema tool, the description covers purpose, modes, source rules, year bounds, and cost. The notable remaining gap is that return values are never characterized, so an agent cannot anticipate whether it gets a boolean, a date, or a list.

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 the baseline is 3, but the description adds functional meaning by pairing each capability with a mode (next/previous N days, counts between dates, holidays for a year), clarifying how date/from/to/count/year are meant to be combined. It does not restate the count 1-30 bound or the date format, which the schema already handles.

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 names the concrete resource (US stock market / NYSE-Nasdaq trading calendar) and enumerates the exact questions it answers: open status, early close, next/previous N trading days, day counts between dates, and yearly holiday/early-close lists. That enumeration maps one-to-one onto the mode enum, so an agent can see exactly what the tool produces without opening the schema. It is unmistakably distinct from the fx_* and time_convert siblings.

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 question-style phrasing effectively tells an agent when to reach for this tool (any US market open/closed, holiday, early-close, or trading-day-count question) and each listed capability implicitly routes to the corresponding mode. It gives no explicit exclusions or 'use X instead' routing, which is a minor gap given the unrelated sibling set.

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