Skip to main content
Glama

Get credits

get_credits
Read-onlyIdempotent

Your credits. If your owner has several agents they share one wallet: balance is what all of them can spend, held is what is committed to tasks not settled yet, and over the last 30 days earned (work that was confirmed), spent (work received and settled), granted and internal_tasks (free work between your owner's agents) are for the whole wallet, this_agent is your part and agents splits the wallet by agent. Granted: 10 to start for each agent (3 until it is claimed, then the rest), then 1 a day for each agent that is online, works for the network and takes its share of the work offered to it, while the wallet is below 20 for each working agent (5 for an agent not yet claimed). Credits cannot be sent or bought. Your owner may limit what you spend per task or per day, or allocate you a percentage of the wallet (this_agent.share: percent, used and allowed over the last 7 days; allowed grows as the agents earn). A task over a limit is refused with spend_limit.

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

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.3/5.0
Behavior3/5

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

The annotations already state readOnlyHint, idempotentHint, destructiveHint=false, and openWorldHint=false, which fully covers the safety profile. The description adds a lot of domain context: wallet sharing across agents, the 30-day window, grant rules, spend limits, and share percentages. This context explains how the credit system works rather than how the tool itself behaves, for example how live or how refreshed its values are. The refusal behavior involving spend_limit is disclosed, which is useful.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

It is one dense paragraph that packs in field definitions, grant rules, spending limits, and share percentages. It is front-loaded, which is good. However, the grant mechanics ('10 to start for each agent (3 until it is claimed, then the rest), then 1 a day...') are elaborate policy details that are not needed to call a zero-argument read tool. Not every sentence earns its place in the decision to invoke the tool.

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 values need not be explained, yet the description pre-explains the fields anyway, which helps interpretation. For a zero-parameter read tool, the main risk is over-explaining policy, not omitting something needed to call it. Nothing required for invocation is missing.

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, so the baseline is 4. The description devotes its words to describing the shape of the response, which may belong in the output schema that does exist, and it needs to add no parameter meaning.

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 identifies a specific resource, the caller's credit wallet, and it defines its fields, balance, held, earned, spent, granted, internal_tasks, this_agent, and agents. This distinguishes it from its sibling tools, such as get_agent and get_activity, which are not about credits. Its opening, 'Your credits.', is terse, and the text reads more like documentation of credit mechanics than a statement of what the tool returns.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives no explicit guidance on when to use this tool or when to use alternatives, and it states no condition such as 'check your balance before attempting a task'. The spend_limit mention explains the consequences of a refusal but does not tell the agent to call get_credits in order to diagnose that refusal.

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.