Billing
Inspect the organization’s balance and costs with its admin permissions.
Inspect the organization’s balance and costs with its admin permissions.
These are action names. In default compact mode, call the indicated group tool with {"action":"<action-name>","params":{...}}; the arguments below go inside params. In ?mode=all, call the action name directly with those arguments. browse_github and read_docs are direct tools in both modes. Expand each schema for nested fields, enum values and validation constraints. Successful results are JSON in both text content and structuredContent; failures use isError and structuredContent.error.
Billing is per organization and requires an admin role. Pass its slug as org. MCP does not add credits or configure auto-reload; on a balance refusal, explain the entitlement and leave billing to an organization admin. MCP money errors omit payment links. REST retains checkout sessions, saved-card top-ups and auto-reload updates.
get_balance
Current balance and billing status of the caller's organization
Group: billing · Behavior: Read
Compact tool: billing · Action: get_balance
MCP annotations: readOnlyHint: true · destructiveHint: false · idempotentHint: true · openWorldHint: false
Permissions and REST equivalents
billing.balance
GET /billing/balance
billing:read
Arguments
org
string
No
Slug of the organization to act in (see orgs.list); needed when the caller reaches more than one
Result
balanceCents(number): Paid balancepromoBalanceCents(number): Promotional credit, spent firstcurrency(string): See the complete response schema below.overLimitCents(number): How far below zero the balance may gostatus(string or null): See the complete response schema below.mode(string): Billing mode of the organizationfrozen(boolean): The organization is frozen: writes are refused until it is unfrozenautoReload(object): See the complete response schema below.
Operation-specific errors: 400 org_required, 403 key_project_restricted.
get_costs
Cost breakdown for a date range of up to 366 days. Default: the current calendar month, UTC
Group: billing · Behavior: Read
Compact tool: billing · Action: get_costs
MCP annotations: readOnlyHint: true · destructiveHint: false · idempotentHint: true · openWorldHint: false
Permissions and REST equivalents
billing.costs
GET /billing/costs
billing:read
Arguments
start
string
No
First day, YYYY-MM-DD
end
string
No
Last day, YYYY-MM-DD
projectId
string
No
Limit to one project
appId
string
No
Limit to one app
org
string
No
Slug of the organization to act in (see orgs.list); needed when the caller reaches more than one
Result
start(string): ISO 8601 timestamp (UTC)end(string): ISO 8601 timestamp (UTC)currency(string): See the complete response schema below.totalCost(number): Total for the range, in the billing currencybyProject(array<object>): See the complete response schema below.byApp(array<object>): See the complete response schema below.byResource(array<object>): Cost per billed resource (CPU, GPU, RAM, storage, bandwidth, ...)daily(array<object>): See the complete response schema below.
Operation-specific errors: 400 org_required.
Was this helpful?
