Skip to main content
Glama

is_peak_hours

Checks whether current time is peak or off-peak for the AI provider and returns the time until the next transition.

Instructions

Returns whether this is peak or off-peak hours for the AI provider. Peak: weekdays 13:00-19:00 UTC. Weekends are always off-peak. Includes time until next transition.

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": "is_peak_hours"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.10.2

TDQS

A4/5.0
Behavior4/5

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

No annotations exist, so the description carries the full disclosure burden, and it does well: it defines peak as weekdays 13:00-19:00 UTC, declares weekends always off-peak, and notes the response includes time until next transition. It doesn't address edge cases like exact boundary instants or holidays, which keeps it short of a 5.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three short sentences, front-loaded with the return value, then the schedule rule, then the secondary return detail. No filler, no repetition of the name or title.

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?

With no output schema, the description must explain the return value, and it does: a peak/off-peak determination plus time until next transition. The schedule is fully specified in UTC. Boundary conditions and holiday handling are the only unstated pieces, which is acceptable for this complexity.

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

Parameters3/5

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

The tool takes no parameters, so the baseline of 4 for zero-param tools applies in principle; the description adds nothing about inputs because there is nothing to describe. Scored conservatively at 3 since there is no parameter content to evaluate at all.

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?

States a specific verb and resource ('Returns whether this is peak or off-peak hours for the AI provider') and immediately qualifies it with the exact peak window, so an agent can distinguish it from any sibling reporting tool without opening a schema.

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 usage is implied by the tool's nature: call it when you need to know whether the provider is currently in peak or off-peak hours. There is no explicit when-to-use or when-not-to-use statement, and no alternative is named, but for a zero-parameter informational query the context is self-evident enough that this is a minor gap.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.