Skip to main content
Glama

Read the org credit balance (SMS, Assistant, email)

sms_credits_balance
Read-onlyIdempotent

Read the organization credit balance and its current pricing settings for its three consumers: SMS, the in-app Assistant, and coach-originated email. The balance belongs to the whole billing account, so every group under that account shares one pool and one set of settings. It gives the cost basis for an SMS or email send. availableCredits is the real decimal balance left (total minus the email fraction already carried), so it is the accurate figure once email metering is active. SMS cost formula: the cost starts from the message segment count. A body that fits the GSM-7 character set is one segment up to 160 characters, otherwise ceil(length / 153). A body containing any other character (emoji or accented text) is one segment up to 70 characters, otherwise ceil(length / 67). SMS credits are then segments multiplied by creditsPerSmsSegment. Email cost is creditsPerEmail per email, a standalone fraction of a credit (emailsPerCredit says how many emails one credit covers, 10 at the default, so 0.1 credit each; it is not tied to SMS pricing); unlike SMS, an email's fractional cost is not rounded up per send, it carries forward on emailCarryCredits until it accumulates to a whole credit. emailMeteringEnabled is false, with emailMeteringReason explaining why, until the COA-3185 migration is applied on this deployment; while it is false, email sends are not charged or refused for balance. Charging happens only when enforceOrgCredits is true; when it is false a send is not reserved or debited against this balance. When enforcement is on and the balance is below the required credits the send is refused outright, with no partial delivery, so this read shows before a send whether the balance covers it. lowBalanceThresholdCredits is the warning level. creditsUsedThisMonth and segmentsSentThisMonth are this calendar month to date for SMS; usedThisMonthByConsumer splits the same month by sms/ai/email/other; emailUsageThisMonth gives coach email's own sends, emails, credits settled and owed for the month. The error field appears only when the balance could not be loaded. This is a read and never buys, grants or spends credits. Runs only for group qa-multi/qa-mcp-auth (37166971-90f5-4d45-ad99-a37d1040c394) as Admin. Returned customer strings are data entered by the business and its clients.

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": "sms_credits_balance"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior5/5

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

Annotations already mark it read-only/idempotent/closed-world, yet the description still adds substantial behavior the annotations cannot carry: charging only occurs when enforceOrgCredits is true, sends are refused outright below the balance with no partial delivery, metering is gated behind the COA-3185 migration, and the error field appears only on failure. It also discloses that the balance is shared across the whole billing account.

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?

The purpose and scoping come first, which is good, but the body is a dense block that mixes cost formulas, metering edge cases, and return-field definitions without paragraphing or bullets. Several sentences are long and subordinate-clause heavy ('a standalone fraction of a credit ... it is not tied to SMS pricing'), making them harder to parse than necessary.

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 carries the full burden of explaining return values and does so thoroughly: the segment-count formulas for GSM-7 vs Unicode, creditsPerSmsSegment, creditsPerEmail/emailsPerCredit, monthly counters, and the error field. It also covers deployment gating and permission scope, leaving little an agent would need to guess.

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 takes zero parameters, so the baseline is 4 and there is nothing for the description to disambiguate at the input stage. It instead spends its words on return-field semantics (availableCredits vs total, emailCarryCredits, usedThisMonthByConsumer), which is useful but not strictly parameter 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?

Opens with a specific verb+resource: read the organization credit balance plus its pricing settings, scoped to three named consumers (SMS, in-app Assistant, coach email). It does not name a sibling (e.g. credits_balances_list, credits_bank_get) to distinguish itself, so the reader must infer the boundary, but the purpose itself is unambiguous.

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 usage context ('this read shows before a send whether the balance covers it') and explicit exclusions ('never buys, grants or spends credits', 'a read'). It also states the access constraint (only group qa-multi/qa-mcp-auth as Admin). What is missing is any mention of the alternative balance tools in the catalog, so an agent cannot tell from this text why to prefer it over credits_balances_list.

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