Stripe Billing

5 entities and 16 agent-callable operations in billing. Each operation is addressed as {mega_tool}/billing/{entity}/{operation} and carries the same permission check over MCP and REST.

agent_usage

OperationMega-toolWhat it does
close_periodsmart_actionClose the monthly agent-usage statement of the caller's organization for a finished calendar month.
statementsreport_queryList the stored monthly agent-usage statements (draft and closed) of the caller's organization, newest period first.
summaryreport_queryLive agent-run usage rollup for one calendar month of the caller's organization (not stored).

invoice

OperationMega-toolWhat it does
listentity_crudList the caller's tenant's invoices, newest due date first.
readentity_crudGet one of the caller's tenant's invoices.

payment_method

OperationMega-toolWhat it does
listentity_crudList the caller's tenant's payment methods, mirrored from Stripe.
readentity_crudGet one of the caller's tenant's payment methods.

plan

OperationMega-toolWhat it does
createentity_crudCreate a subscription plan (operator act).
listentity_crudList the subscription plans visible to the caller's tenant: every public plan (tenant is null) plus any plan scoped to this tenant specifically (e.g.
readentity_crudGet one subscription plan visible to the caller's tenant.
updateentity_crudUpdate a subscription plan (operator act) — e.g.

subscription

OperationMega-toolWhat it does
cancelworkflow_actionCancel the tenant's Stripe subscription.
change_planworkflow_actionChange the tenant's Stripe subscription to a different plan (proration applies).
create_checkout_sessionworkflow_actionStart a Stripe Checkout session for one plan (card or ACH).
create_portal_sessionworkflow_actionOpen a Stripe Customer Portal session so the human can change the payment method on file, view invoice history, or download PDFs.
read_currententity_crudBilling status for the caller's tenant: whether online payments are enabled, whether a Stripe customer/subscription exists, the current plan, period end…

Parameter schemas and permissions

Parameter schemas and permission codenames are in the full reference — sign in — or call prism_introspect(dimension="capability_search", query="…") with your key.

In the full reference this application appears under entity_crud, report_query, smart_action, workflow_action.