Skip to main content
Glama
Primate-Intelligence

Primate Intelligence

Official

get_credits

Read-only

Check your credit balance and transaction history to audit what each analysis costs, verify sufficient credits before a batch, and resolve insufficient_credits errors.

Instructions

Get the credit balance and transaction ledger for this API key (GET /v1/credits). Returns balance_seconds (the authoritative balance, in billable seconds), grant_seconds, used_seconds, and a paginated transaction list where each debit carries the analysis/stream id it came from (source_id, source_type). Use this to audit what each analysis cost, check the balance before a batch job, or diagnose an insufficient_credits error.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoTransactions per page (default 20).
beforeNoCursor — return transactions older than this id.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
objectYes
has_moreYes
transactionsYes
used_secondsYes
grant_secondsYes
balance_secondsYesSeconds of analysis remaining. The authoritative balance.
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so the safety profile is known. The description adds valuable behavioral context: it identifies balance_seconds as the authoritative balance, explains the transaction list is paginated, and notes that each debit carries source_id/source_type. This goes beyond the annotation hints.

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?

The description is three sentences, front-loaded with the main purpose, followed by return structure and use cases. Every sentence is informative, with no redundancy. It is both concise and well-structured.

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?

Given the output schema exists and the tool is a straightforward read-only query, the description is complete. It explains the return fields, the pagination behavior, and the practical use cases. There is no missing context that would hinder the agent's ability to use the tool correctly.

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 coverage is 100%, with both parameters (limit and before) having descriptions. The description does not add any additional parameter-level detail beyond what the schema already provides, so the baseline score of 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description starts with a specific verb and resource: 'Get the credit balance and transaction ledger for this API key'. It clearly distinguishes this from siblings like get_usage by focusing on credits, balance, and transaction ledger, and even specifies the endpoint. This is a model of purpose clarity.

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?

The description provides explicit use cases: 'audit what each analysis cost, check the balance before a batch job, or diagnose an insufficient_credits error.' This gives the agent clear when-to-use guidance. However, it does not mention any alternatives or exclusions (e.g., when NOT to use it), so it falls just short of a 5.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Primate-Intelligence/primate-intelligence-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server