x402-is-night
Is Night: Check whether a given time or the current local time falls in night hours (21:00-05:00). Returns true if it is nighttime. 🆓 5 free trial calls per signed wallet
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No |
Is Night: Check whether a given time or the current local time falls in night hours (21:00-05:00). Returns true if it is nighttime. 🆓 5 free trial calls per signed wallet
| Name | Required | Description | Default |
|---|---|---|---|
| date | No |
Changes observed during successful MCP inspections.
Input schema / properties / date / descriptionRemoved value: -"Date to process"Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are supplied, so the description carries the full burden, and it does disclose the defining behavior (night defined as 21:00-05:00, returns true for night) plus a payment/trial constraint. It leaves a real gap: it never says what is returned for the negative case, nor which timezone "local" resolves to.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Two sentences, front-loaded with the definition and the true condition; nothing is buried. The trailing free-trial/pricing line is tangential to the semantics but brief and arguably useful for a paid x402 endpoint.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a single-optional-parameter boolean predicate with no output schema, the description covers purpose, the exact boundary hours, and default behavior. The remaining hole is timezone/format handling, which matters because "night" is inherently timezone-dependent.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema coverage is 0% for the single optional `date` parameter, so the description must compensate. It adds the meaningful default behavior (omit it and the current local time is used) but never specifies the accepted format (ISO 8601, epoch, HH:MM), so an agent still has to guess how to pass a time.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description names the verb and resource precisely ("Check whether a given time ... falls in night hours") and pins the exact window (21:00-05:00), which distinguishes it from siblings like x402-is-morning or x402-is-evening without naming them. It falls short of 5 only because it never explicitly routes to those siblings.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
It does say that omitting a time uses the current local time, which tells the agent one way to call it. However, there is no guidance on when to prefer this over is-evening/is-morning/is-afternoon, nor any note on prerequisites such as the paid x402 wallet flow beyond the free-trial line.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Add one secure layer between your agents and this server.