Skip to main content
Glama

Get credits left

get_credits
Read-onlyIdempotent

The account's plan and what is left: analyses, traces and pack credits, when the allowance renews, and what each tool costs. Without an API key: what each tool costs per call with x402. Free.

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

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already establish readOnly, idempotent, and closed-world, so the bar is lower. The description still adds real context the annotations cannot: the call is free, it works without an API key, and in that unauthenticated mode it returns x402 per-call pricing instead of an account balance.

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 tightly packed sentences with no filler—the first covers the authenticated payload, the second the anonymous fallback. The colon-list style is dense but front-loads the important content immediately.

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?

There is no output schema, so the description correctly carries the burden of naming every returned field, including the renewal timing and per-tool pricing. The one residual gap is that it does not say whether a low or exhausted balance affects subsequent calls, which an agent budgeting its usage would want to know.

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 goes slightly further by explaining that the response shape branches on whether an API key is supplied, which is meaningful input context even with an empty schema.

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?

It precisely enumerates the returned resource: account plan, remaining analyses/traces/pack credits, renewal date, and per-tool costs. The verb is implicit ('get' from the name) rather than stated, but no sibling tool touches billing or credits, so differentiation is not a concern.

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?

It signals implicit context—check remaining allowance before spending calls, and note that calling it is free—but never states explicitly when to reach for it versus, say, running an analysis and absorbing the cost. With no comparable sibling, there is nothing to disambiguate against, so guidance stays at the implied level.

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