Get plan and billing status
billing_statusCheck plan, trial days, credits used, next charge, unpaid invoices, and cancellation status when a payment fails or users ask about billing; returns billing URL.
Instructions
Use this when a tool fails with PAYMENT_REQUIRED, or the user asks about their plan, trial or bill. Returns the account's plan (none, pro, payg = old prepaid credits until November 1, 2026, enterprise), the Pro status (trialing, active, past_due, canceled), trial days and trial credits left, this month's credits used of the included $19 and the overage, the next charge, a pending cancel, an unpaid invoice link, and billingUrl. Pro is $19/month, taxes included, with $19 of credits each month. Starting Pro, paying and cancelling happen in the browser at billingUrl; give the user the link. With workspaceId, reads that workspace owner's plan.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workspaceId | No | Read the plan of this workspace's owner instead of your own |