Skip to main content
Glama

Get minute balance

get_usage
Read-only

Check remaining video minutes before spending any (call this before approve_lesson if unsure)

Use when the user asks how much is left, or before approve_lesson when the balance may be tight. remaining is what this key can spend now: the account's own balance as the billing page shows it (plan minutes left plus bought packs, or the free trial plus packs), narrowed by the key's own monthly cap if it has one; never a second rule. used is this key's minutes in the current period (finished videos plus minutes held for its lessons still rendering); limit = used + remaining. approve_lesson answers 402 quota_exceeded when the lesson does not fit.

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

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already cover read-only safety, but the description adds substantial context beyond them: it defines exactly what `remaining` means (account balance narrowed by the key's monthly cap, 'never a second rule'), what `used` counts (finished videos plus minutes held for in-flight renders), and that `limit` = used + remaining. It also discloses the downstream 402 quota_exceeded failure mode, which is real behavioral information an agent cannot get from the annotation set.

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?

Front-loaded with the actionable directive before the semantics, and every clause about the counters earns its place. Minor redundancy: the 'before approve_lesson' instruction appears twice (once parenthetically, once in the use-when sentence), and the backtick/semicolon density makes it slower to scan than necessary.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

There is no output schema, so the description carries the burden of explaining the response — and it does, defining all three counters and how they relate. Combined with the 402 escalation path, an agent has everything needed to call this and interpret the result.

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

Parameters4/5

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

The tool takes zero parameters, so the baseline is 4. The description instead spends its effort documenting the return semantics (`remaining`, `used`, `limit`), which is the right trade-off given there is no input to explain.

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 ('Check remaining video minutes') and immediately scopes it against the sibling that consumes the result ('call this before approve_lesson'). An agent can distinguish this from list_lessons or get_lesson without opening any schema.

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

Usage Guidelines5/5

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

Gives an explicit when-to-use rule ('when the user asks how much is left, or before approve_lesson when the balance may be tight') plus the consequence of skipping it ('approve_lesson answers 402 quota_exceeded when the lesson does not fit'). The alternative and its selection condition are both named.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources