Skip to main content
Glama

MapBulk

Get credit usage

get_usage
Read-only

Return credit balances and usage after applying scheduled paid-credit expiry. displayed_credits is the balance in credits, as the user sees it; credit_balance_units, reserved, settled and period_settled count half-credit units (2 units = 1 credit).

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

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=false, so the safety profile is covered without the prose. The description does add genuine behavioral context the annotations cannot convey: that expiry is applied before the figures are computed, which explains why returned balances may not match raw ledger totals. It still does not say whether balances are account-wide or scoped, or anything about freshness/caching.

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?

Two sentences, front-loaded with the verb, and the second sentence's density is justified because the unit discrepancy is exactly what would otherwise cause a misread. Slightly run-on, but no filler.

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

Completeness4/5

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

A read-only, zero-parameter tool with an output schema — the description only needed to explain the expiry timing and the two different unit systems, and it does both. Scope (whose credits) is the only meaningful gap.

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 schema baseline applies. The field-level explanation (displayed_credits in credits vs. half-credit units elsewhere) actually describes output semantics rather than input, which is useful but sits closer to the output schema's remit.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

Specific verb+resource: "Return credit balances and usage" and it pins down the exact point in time at which the numbers are computed (after scheduled paid-credit expiry). No sibling differentiation is offered, but the siblings listed are search/export tools that no agent would confuse with a credit-balance getter.

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

Usage Guidelines3/5

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

Usage is only implied by the name and read-only nature; there is no statement of when to call this versus anything else, no prerequisites, no exclusions. For a zero-parameter read tool the implied usage is largely unambiguous, so this is adequate rather than harmful.

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.