Check usage & credits
check_usageShow how many Lenz credits are left, and what they still buy.
One pool funds every call. costs is the live price list — read the weight from there rather than assuming one. verify_claim is the expensive tool by an order of magnitude; assess_claim and ask_followup are the cheap ones.
costs is keyed by capability at its default price. cost_options holds the prices that depend on a request parameter, nested capability → parameter → value — today verify_claim at depth="low", under cost_options.verify.depth.low. Read the low-depth price from there.
assess_remaining and verify_remaining are two views of the SAME balance, not separate allowances: spending on one reduces both. Call this when the user asks about credits, or before a large batch to size it against credits_remaining. It is not a prerequisite: never call it before an ordinary check. next is one example of what the user can ask.
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": "check_usage"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||