Skip to main content
Glama

Credit balance and usage

get_usage
Read-onlyIdempotent

Returns the Layrcake credit balance, reserved holds, available credits, and per-verb usage for the last 30 days. On a plan whose search is covered, plan_search gives this window's and this month's used, left and ceiling, and when each resets.

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

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false, and openWorldHint=false, so the safety profile is fully covered structurally. The description adds the fixed 30-day window and the presence of reserved holds (implying some credits are held rather than spendable), but says nothing about what happens with zero balance or how holds are released.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences, no filler, with the returned fields front-loaded before the alternative-tool note. The conditional phrase "On a plan whose search is covered" is slightly compressed but readable, and nothing is redundant.

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?

With no output schema, the description carries the burden of describing return values, and it does so by enumerating the four main data groups and asserting a 30-day window. It stops short of describing structure or units (e.g., how per-verb usage is keyed), which leaves a small gap for a reporting tool with no output schema.

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 no parameters, so there is nothing for the description to disambiguate; the baseline applies. The description correctly implies the scope is fixed (account-wide, last 30 days) rather than configurable, which is the one useful parameter-adjacent fact here.

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?

"Returns the Layrcake credit balance, reserved holds, available credits, and per-verb usage for the last 30 days" gives a specific verb plus an enumerated set of returned resources and a time scope, so the agent knows exactly what data this tool exposes. Naming plan_search with a distinct payload (used/left/ceiling/reset times) further separates it from the nearest related tool.

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

Usage Guidelines4/5

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

It provides a concrete routing rule: when the plan's search is covered, use plan_search for window/month consumption and resets rather than this tool. It lacks an explicit statement of when this tool is the wrong choice outside that one case, but the split of responsibility is clear enough to act on.

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