Billing
billingBilling tools for the Draftless AI creative studio. Requires sign-in to run. Actions:
show_plans_and_credits: Billing overview for the signed-in user: current credit balance, plan tier, lifetime earned/spent, live subscription state (package, interva
get_credit_balance: Get the signed-in user's Draftless credit balance, plan tier, and lifetime earned/spent totals.
list_transactions: Paginated credit ledger for the signed-in user: every credit movement, newest first, with amount (positive = earned/purchased, negative = sp
list_invoices: List the signed-in user's Stripe invoices (most recent first) with date, amount in the currency's minor unit, status, line description, and
start_credit_purchase: Create a Stripe Checkout link for a one-off credit top-up and return the URL.
get_purchase_status: Check whether a credit purchase started by start_credit_purchase has actually completed.
get_billing_portal_url: Return a link to the signed-in user's Stripe billing portal, where THEY can change plan, cancel, update payment methods, and download invoic
get_auto_refill_settings: View the signed-in user's automatic credit top-up (auto-refill) configuration: whether it is on, the balance threshold that triggers it, whi
set_auto_refill_settings: Reduce or disable the signed-in user's automatic credit top-up.
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": {
"action": "<action>"
},
"name": "billing"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | No | Arguments for the action (see discover.describe_action once signed in). | |
| action | Yes | Which operation to run. |