Skip to main content
Glama

Time until a usage limit resets

time_until_reset
Read-only

Calculates how long until a provider's usage window resets, returning seconds and readable time so agents can warn before long tasks.

Instructions

Seconds (and human text) until a provider's usage window resets. Default window: the first (5h).

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "provider": "<provider>"
    },
    "name": "time_until_reset"
  }
}

Input Schema

NameRequiredDescriptionDefault
windowNoLimit window: "5h" (short window, the first) or "7d" (long window, the second). Labels like "1d" or "30d" also work.
providerYesProvider id, e.g. "claude" or "codex".

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare a safe read-only, closed-world operation, so the description isn't burdened with safety disclosure. It still adds useful behavior beyond them: it discloses the return shape (seconds plus human-readable text) and the defaulting rule for the window parameter, which matters because there is no output schema.

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?

Two short sentences, the return value front-loaded and the defaulting rule second. Nothing is padded and there is no restating of the tool name.

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 two-parameter read-only tool with full schema coverage and annotations, the description covers what is returned and how the optional parameter defaults. Without an output schema, a little more on the format of the human text or behavior for an unknown provider would make it complete.

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?

Schema coverage is 100%, so provider and window are already fully documented in the schema, and the baseline is 3. The description's only addition is confirming that the default window is the 5h one, which is a small but real complement to the schema text.

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?

The description names the resource precisely — a provider's usage window reset — and states what is returned (seconds plus human text). It is clear what the tool does, but it never distinguishes itself from the siblings get_usage and check_budget, leaving the agent to infer why it would choose reset timing over general usage info.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no when-to-use guidance, no mention of alternatives such as get_usage or check_budget, and no stated preconditions. The only contextual note, 'Default window: the first (5h)', documents a default value rather than telling the agent when this tool is the right choice.

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

Deploy Server

Other Tools