Get minute balance
get_usageCheck 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
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||