Read the org credit balance (SMS, Assistant, email)
sms_credits_balanceRead 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
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||