Skip to main content
Glama

Get Credit Usage

get_credit_usage
Read-only

Current Sliq credit balance, 30-day spend by agent, and — for a workspace member — the shared team block.

Returns {'balance': float, 'usage_by_agent': [{'agent_id', 'title', 'credits_used', 'is_agent'}, ...], 'team': None | {'workspace_name', 'your_role', 'seats_used', 'seats_active', 'seat_limit', 'per_member_spend': [{'user_email', 'credits_used_30d', 'is_you'}, ...]}}. balance/usage_by_agent are the same rollup the Billing page renders; spend not tied to an agent groups by activity label (e.g. 'Standalone chat', 'Data extraction'). team is None for solo users and otherwise mirrors the Billing team card: seats_used counts invited+active seats (spoken for), seats_active only active ones. per_member_spend excludes removed members and unattributed charges, so it does not sum to pool spend — it is spend over the last 30 days.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations only declare readOnlyHint. The description adds substantial behavioral context: team is None for solo users, seats_used vs seats_active meaning, per_member_spend excludes removed members and unattributed charges, and unattributed spend groups by activity label. This goes well beyond the annotation.

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 long but every sentence earns its place by explaining return semantics, aliases, or edge cases. The purpose is front-loaded, and the return structure is compactly presented before deeper caveats.

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?

With no output schema, the description must fully document the return shape, and it does: nested structures, None cases, counting semantics, and non-summation caveats are all covered. For a zero-parameter read-only tool, nothing needed to invoke it correctly 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 there is no parameter semantics burden to carry. Per the zero-parameter baseline, the description appropriately spends no space on inputs that do not exist.

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?

States a specific verb and resource: it retrieves the current Sliq credit balance, 30-day agent spend, and the workspace team block. This clearly distinguishes it from sibling get_* and check_* tools by data domain rather than relying on the name alone.

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 gives clear context for when this tool is relevant: whenever credit balance, spend by agent, or team seat/credit data is needed. It does not explicitly name alternatives or exclusions, but the scope is specific enough that an agent can route to it confidently.

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