Skip to main content
Glama

getCreditsBalances

Read-only

Get the credits balances of one customer by customerId. Each balance has an amount, an allocation, and an expirationDate when the credits expire. Get customerId from getCustomers. Never invent UUIDs; only use values from prior tool responses.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "customerId": "<customerId>"
    },
    "name": "getCreditsBalances"
  }
}

Input Schema

NameRequiredDescriptionDefault
customerIdYesThe id of the customer.

Output Schema

NameRequiredDescriptionDefault
balancesYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, and openWorldHint=false, so the safety profile is covered. The description adds that each balance carries an amount, an allocation, and an expirationDate, which is useful semantic context, but it mostly describes return content that the output schema already defines and adds nothing on rate limits or failure modes.

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?

Three short sentences, front-loaded with the action and scope, followed by the return shape and the ID-sourcing rule. No redundant or filler wording.

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?

For a single-parameter read tool with full annotation coverage and an output schema, the description supplies everything needed: the resource, the scope, the source of the required ID, and the shape of returned balances including expiration.

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?

Schema coverage is 100% and only one parameter exists, so the baseline is met by the schema alone. The description goes beyond 'The id of the customer' by specifying where the value must come from (getCustomers) and forbidding invented UUIDs, which is meaningful provenance guidance.

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?

States a specific verb and resource with scope: 'Get the credits balances of one customer by customerId.' The credit-balance resource is distinct from neighboring tools like getDayPassesBalances and getCreditsTransactions, so an agent can select it without opening the schema, though no explicit sibling contrast is given.

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?

Gives a concrete prerequisite chain: 'Get customerId from getCustomers' and the safety rule 'Never invent UUIDs; only use values from prior tool responses.' This clearly establishes when the tool is usable, but it does not say when to prefer it over alternatives such as transaction-history or day-pass-balance tools.

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