Skip to main content
Glama

credits

Checks remaining prepaid balance or rate-limit quota across supported LLM providers via public APIs, omitting providers without an official endpoint.

Instructions

Read leftover credits or quota where a public API exists.

OpenRouter and Vercel AI Gateway: prepaid USD remaining. SiliconFlow: prepaid balance. Groq: remaining daily/minute rate limits (not dollars). Most other hosts have no credit API — those are omitted, not guessed.

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": "credits"
  }
}

Input Schema

NameRequiredDescriptionDefault
providerNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.15.1

TDQS

A3.8/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden. It does valuable work by disclosing output units per host (prepaid USD vs. rate limits, explicitly 'not dollars') and by guaranteeing no fabricated values for unsupported hosts, but it says nothing about authentication/configured-key requirements, error behavior, or whether unfunded providers are silently skipped.

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?

Front-loaded scope sentence followed by a compact per-host mapping and an explicit exclusion note. Every line carries information; nothing is redundant or padded.

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?

An output schema exists, so return formatting need not be explained, and the description covers scope, units, and unsupported hosts well. The remaining gap is the omitted-parameter behavior and the key/auth prerequisite implied by the neighboring configure_key tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% for the single 'provider' parameter, so the description must compensate. It effectively enumerates the meaningful values (OpenRouter, Vercel AI Gateway, SiliconFlow, Groq), but it never states what happens when 'provider' is omitted (default null), such as whether all supported hosts are queried and returned.

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?

The description opens with a specific verb+resource ('Read leftover credits or quota') and immediately scopes it to hosts with a public API. It is clearly distinguishable in concept, but never names the obvious adjacent sibling 'still_free', leaving that boundary for the agent to infer.

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 gives explicit applicability ('where a public API exists') and enumerates the qualifying hosts, then states a clear exclusion: other hosts 'are omitted, not guessed.' It stops short of telling the agent what to do instead for unsupported hosts (e.g., use provider_status or still_free), so no alternative is named.

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