Skip to main content
Glama

Get credit usage

get_credit_usage
Read-onlyIdempotent

The AI credits of the account a brand belongs to, for the current billing period: credits included in the plan, used and left, credits from top-up packs, when the period resets, and what the credits were used for. Credits are an account-level balance shared by all brands of the owner. Costs per action: ai analysis of an incoming comment (sentiment and tags) 0.1, ai reply suggestion for a comment 0.9, ai reply suggestion for a dm 1, ai analysis of a post 2, answer of the in-product assistant 2, 4, 10 by depth. Only these AI actions cost credits, also when an automation triggers them; posting replies, likes, hides and API or MCP calls do not. Team members see the account balance but only the usage of the brands they work on (scope says which). Credits cannot be bought through this tool.

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": {
      "brand": "<brand>"
    },
    "name": "get_credit_usage"
  }
}

Input Schema

NameRequiredDescriptionDefault
brandYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare read-only, idempotent, non-destructive, so the safety profile is covered. The description goes well beyond them by disclosing account-level versus brand-level visibility for team members, scoping behavior ("scope says which"), the exact per-action credit prices, and the non-obvious rule that posting, likes, hides and API/MCP calls cost nothing even when triggered by automations.

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?

Front-loaded with the returned fields, then visibility rules, then the price list. The price enumeration is long but earns its place by telling the agent how to interpret consumption; the closing line about credits not being purchasable here is useful scope-setting, though overall it runs longer than needed.

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?

There is no output schema, and the description compensates by enumerating exactly what the response contains. For a one-parameter read tool with full annotation coverage, nothing needed to call or interpret 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?

Schema coverage is 0% for the single `brand` parameter, so the description must compensate and does: it explains that the brand resolves to the account that owns it, that credits are an account-level balance shared across brands, and that member visibility is filtered by which brands the caller works on.

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 states a specific verb-less but precise resource: the AI credits of the account a brand belongs to, for the current billing period, and enumerates the returned fields (included, used, left, top-up packs, reset date, usage breakdown). This clearly separates it from billing-adjacent siblings, though it never names the closest alternative (get_reply_suggestion_usage) to route on.

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 only implied: an agent infers it should call this when it needs the account's credit balance or per-action costs. There is no explicit when-to-use or when-not-to-use guidance, and no mention of get_reply_suggestion_usage as an alternative for suggestion-specific usage.

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