Skip to main content
Glama

get_credit_usage

Check the workspace's current-period credit usage—remaining, reserved, used, purchased, and promotional balances with expiry dates, plus lifetime totals—before running large jobs.

Instructions

Return the workspace's credits for the current period: remaining, reserved by running jobs, used, purchased and promotional (with expiry dates), plus lifetime totals. Free and read-only. Check it before large work; use estimate_credits to price one request.

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_credit_usage"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.7/5.0
Behavior4/5

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

With no annotations supplied, the description carries the burden and does disclose the key behavioral traits: "Free and read-only," implying no cost and no side effects. It also describes the shape of the return data, including expiry dates on promotional credits. It does not mention auth requirements or rate-limit accounting, a minor remaining gap.

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, both front-loaded and free of filler: the first defines the payload, the second gives the call-to-action and the alternative. Every clause earns its place.

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?

There is no output schema and no annotations, so the description must convey both what comes back and its safety profile; it enumerates the returned fields and states the read-only/free nature. For a zero-parameter snapshot tool, an agent has everything needed to call it correctly.

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 there is no parameter semantics to explain and the baseline of 4 applies. The description does not misrepresent any inputs and implies a workspace-scoped, no-argument call.

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?

Names a specific verb+resource ("Return the workspace's credits") and enumerates the exact fields returned: remaining, reserved, used, purchased, promotional with expiry dates, and lifetime totals. This is clearly distinguishable from the sibling estimate_credits, which prices a single request.

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 when to call it ("Check it before large work") and names the alternative plus the condition that selects it ("use estimate_credits to price one request"). Nothing is left to inference.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.