Skip to main content
Glama

Lenz Fact-Check

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 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

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 cover the safety profile (readOnly, idempotent, closed-world), so the description's job is to add semantics — and it does: spending on assess_remaining or verify_remaining draws from one shared balance rather than separate allowances, and verify_claim is an order of magnitude more expensive. Those are non-obvious behavioral facts an agent could not infer from annotations or schema.

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 single-pool model, and each paragraph builds on the last. It is on the long side for a zero-parameter tool — the cost_options.verify.depth.low path example is quite specific — but that detail is genuinely needed to interpret 'what credits buy.'

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 no-argument tool with an output schema and full annotations, everything an agent needs is present: when to call, when not to, how the balance is shared, and how to price the expensive sibling before batching. Nothing material is left to inference.

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?

Zero parameters, so the baseline is 4. The description spends its words on output-shape guidance instead (costs keyed by capability, cost_options nested capability → parameter → value), which is partly redundant since an output schema exists, but it usefully flags that prices are live and should be read rather than assumed.

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 concrete verb and resource — shows remaining Lenz credits and what they buy — with the awkward-but-useful framing that a single pool funds all calls. It also implicitly distinguishes itself from spending tools (verify_claim, assess_claim, ask_followup) by positioning itself as the budget-inspection counterpart.

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 explicit triggers (user asks about credits, or before a large batch to size against credits_remaining) and an explicit exclusion: 'It is not a prerequisite: never call it before an ordinary check.' That negative guidance directly prevents over-calling, which is the main risk with a zero-cost-looking usage 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.