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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | Date to process |
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.
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | Date to process |
Changes observed during successful MCP inspections.
Input schema / properties / dateAdded value: +{
+ "description": "Date to process",
+ "type": "string"
+}Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description must carry the behavioral burden. It does disclose the night window (21:00-05:00) and that it falls back to current local time when no value is supplied, which is useful, but it says nothing about timezone handling or how the input is interpreted.
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 tight sentences, front-loaded with the core predicate and the boundary hours; the trailing 'Returns true if it is nighttime' is mildly redundant with 'Check whether...falls in night hours' but costs little.
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 simple boolean predicate with no output schema and no annotations, the description covers the essential behavior but omits timezone/format details an agent may need when supplying the optional date argument.
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 description coverage is 100% for the single 'date' parameter, so the baseline is 3. The description adds that a time or the current local time is checked, but does not clarify the expected date/time format, leaving the schema to do the work.
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 gives a specific predicate with explicit boundaries (21:00-05:00) and states the return value, distinguishing it from the neighboring is-morning/is-afternoon/is-evening siblings by naming the exact hour range. It stops short of explicitly naming an alternative tool, so it is clear but not fully differentiated.
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?
There is no stated when-to-use or when-not-to-use guidance and no reference to the many sibling time tools (x402-is-morning, x402-is-afternoon, x402-is-evening). Usage is only implied by the predicate itself.
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.