Skip to main content
Glama

Check credit

get_credits
Read-onlyIdempotent

The account’s credit (needs an API key): the balance in US cents and the latest rows (payments in, charges, refunds). Credit pays for new links past the account’s 30 free ones a day, 1¢ a new link; a read that fails gives its charge back.

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. Added

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, closed-world, non-destructive behavior, so the safety profile is covered. The description adds meaningfully beyond that: it requires an API key, states the unit (US cents), enumerates what the returned rows contain, and discloses that a read which fails refunds its charge — a non-obvious billing trait an agent could not get from structured data.

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 resource and auth requirement before the pricing model. The second sentence is denser than strictly necessary for invocation, but it substitutes for the absent output schema and the free-tier context, so it largely earns its space.

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 return-value burden and does so: balance in US cents plus latest payment/charge/refund rows. Combined with the API-key requirement and the credit-cost model, an agent has enough to call it correctly; only the row count or pagination of 'latest rows' is left unspecified.

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 has zero parameters, which sets the baseline at 4. The description adds the only relevant calling context, namely that an API key is required, which is auth information the empty schema cannot express.

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 names a specific resource and the exact payload: the account's credit balance in US cents plus the latest ledger rows (payments in, charges, refunds). That is far more than the tautological title 'Check credit'. It stops short of differentiating from the nearby get_payment_options sibling, which is the one plausible confusion for an agent.

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 implied rather than stated: the tool reports balance and recent transactions, so an agent can infer 'use this to check remaining credit'. There is no explicit when-to-use, no when-not-to-use, and no pointer to an alternative such as get_payment_options for buying more credit.

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