Skip to main content
Glama

Check usage & credits

check_usage
Read-onlyIdempotent

Show 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 is the cheap one.

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

NameRequiredDescriptionDefault

No arguments

Output 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 establish read-only, idempotent, closed-world safety, so the description is free to add the non-obvious semantics: one shared pool funds every call, and assess_remaining/verify_remaining are two views of the SAME balance rather than separate allowances. It also gives relative cost magnitude ('verify_claim is the expensive tool by an order of magnitude'), which materially changes how an agent plans a batch.

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 purpose and the use/don't-use rule before descending into pricing structure. The middle section on `costs` versus `cost_options.verify.depth.low` is dense and slightly redundant with an output schema that already exists, but it does earn its place by telling the agent where to read a parameter-dependent price.

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?

For a zero-parameter, read-only, fully annotated tool with an output schema, this covers everything an agent needs: what the balance means, how the two remaining fields relate, how to read the price list, and the one trap (assuming a single flat price).

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; there is nothing for the description to disambiguate on the input side, and it correctly spends its words on output semantics instead.

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?

Opening sentence names a specific verb and resource — 'Show how many Lenz credits are left, and what they still buy' — which is unambiguous and cannot be confused with assess_claim, verify_claim, or any of the other siblings, all of which perform checks rather than report account state.

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?

Explicitly states both the trigger ('when the user asks about credits, or before a large batch to size it against credits_remaining') and the exclusion ('It is not a prerequisite: never call it before an ordinary check'), which is exactly the kind of negative guidance that prevents over-calling a metering tool.

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