Skip to main content
Glama

minia2a — hosted x402 API marketplace (HTTP)

x402-day-of-year

Day Of Year: Returns the 1-based day of the year and the year for a date, defaulting to today 🆓 5 free trial calls per signed wallet

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": "x402-day-of-year"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • removedInput schema / properties / date / description
      Removed value: -"Date to process"
  2. First observed

TDQS

B3.3/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It discloses the default behavior (today) and the pricing/auth note about 5 free trial calls per signed wallet, which hints at a paid/authenticated surface. It does not state whether the tool is a pure read-only computation or what error occurs on an unparseable date.

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?

One compact sentence, front-loaded with the tool name and the exact return values, with the default and pricing note trailing. The pricing emoji adds minor noise but no real bloat.

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 single-parameter, annotation-free compute tool with no output schema, the description does state both return components (day-of-year and year) and the default input. The only meaningful gap is the input date format, which leaves the agent guessing on invocation.

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

Parameters2/5

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

Schema coverage is 0% for the single 'date' string parameter, so the description must compensate. It explains the default value (today) but never specifies the accepted format (ISO 8601, MM/DD/YYYY, epoch, etc.), which is the critical ambiguity for a date-parsing tool with an untyped string input.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource: returns the 1-based day of the year plus the year for a given date. This clearly separates it from neighbors like x402-day-of-week and x402-week-of-year, though it never names a sibling or explicitly contrasts with them.

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?

The phrase 'defaulting to today' implies the primary usage (call without arguments for the current day), which is useful. However, there is no when-to-use vs. when-to-use-an-alternative guidance, and no mention of how it relates to day-of-week, week-of-year, or julian-day tools in the same family.

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.