Skip to main content
Glama

Agent Data Tools: Utilities

Week number and date facts: ISO week, weekday, day of year, quarter

date_info
Read-only

Weekday, ISO week number and week-year, day of the year, quarter, days in the month, leap year, Unix timestamp and whether it is a weekend, for any date. Use for calendar and reporting logic. Example: date=2026-10-18. Price $0.01/call via x402 USDC or a card key (/credits), first 10 free; failed calls free. Reads or computes only and changes nothing; each call is charged, so repeats are not free.

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_info"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateNoDate or ISO timestamp (default today)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • removedInput schema / required
      Removed value: -[
      -  "date"
      -]
  2. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, and openWorldHint=false, and the line "Reads or computes only and changes nothing" largely restates that. The real added value is the billing behavior — "$0.01/call via x402 USDC or a card key (/credits), first 10 free; failed calls free" and "each call is charged, so repeats are not free" — which explains why idempotentHint=false is set for a pure computation and warns the agent about repeat-call cost.

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 output enumeration is front-loaded in the first sentence, followed by usage, example, pricing, and safety in a logical order. The final safety clause is somewhat redundant with the readOnly annotation, but no sentence is seriously wasteful.

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?

With no output schema, the description correctly takes on the burden of describing return values by enumerating every computed fact. It also covers the optional parameter's default and the pay-per-call cost model, which is the main operational risk for an agent deciding to repeat a call.

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% and the schema already documents `date` as "Date or ISO timestamp (default today)". The description reinforces this with a concrete format example (date=2026-10-18) and states the tool works "for any date", marginally reducing format ambiguity but not adding syntax details beyond the schema.

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 exact computed outputs — weekday, ISO week number and week-year, day of year, quarter, days in month, leap year, Unix timestamp, weekend flag — for any date, which is a specific verb-plus-resource statement. That output enumeration makes it clearly distinguishable from siblings like date_add, date_diff, and unix without opening their schemas.

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?

"Use for calendar and reporting logic" gives an implied usage context, and "Example: date=2026-10-18" shows a call. However, no alternatives are named (e.g., when to prefer the `unix` sibling for pure timestamp conversion, or `date_add`/`date_diff` for arithmetic), and no exclusions or preconditions are stated.

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