Skip to main content
Glama

Get AI usage limits

get_usage
Read-only

Retrieve current AI subscription usage limits per provider, including percent used and time until each window resets, so agents can warn you before starting a long task.

Instructions

Current usage of AI subscription limits (Claude Code, Codex, GitHub Copilot, Windsurf and any AI the user added to TokenBar). For each AI: windows (usually 5h and 7d) with usedNow (% used right now, 0 after the reset time), resetsAt (unix s) and resetsInSeconds.

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

Input Schema

NameRequiredDescriptionDefault
providerNoOptional provider id: "claude", "codex", "copilot", "windsurf" or another id. Omit for all.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so the safety profile is covered. The description adds real behavioral substance beyond that: the per-AI window structure (typically 5h and 7d), the meaning of usedNow as a percentage that is 0 after reset, and the unix-second nature of resetsAt. It omits anything about empty results or providers with no data, but the added context is solid.

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?

Two tight sentences, front-loaded with what the tool returns, then the per-window field breakdown. The parenthetical field list is dense but every clause carries information; nothing is repeated verbatim from the schema.

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 and a single optional parameter, the description carries the return-value burden and does so reasonably, naming the three key response fields and their units. It could state the overall response shape (a list keyed by provider) but is close to sufficient for a simple read tool.

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 the provider parameter and its valid ids are already documented in the schema. The description only adds the nuance that user-added AIs are also valid provider targets, which is a marginal but real addition over the schema's fixed id list.

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 specifies the resource precisely: current usage of AI subscription limits, naming the concrete providers (Claude Code, Codex, GitHub Copilot, Windsurf) and user-added AIs. It does not explicitly contrast with siblings like time_until_reset or check_budget, so an agent must infer differentiation from names alone.

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 explicit when-to-use guidance, no mention of when to prefer time_until_reset or check_budget, and no prerequisites stated. Usage is only implied by the tool's subject matter.

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