Get credits (account balance in USD)
get_creditsRetrieve the authenticated account's prepaid US-dollar balance, plan, limits, and available credit packs to verify funds before starting agent runs.
Instructions
Get the authenticated account's prepaid US-dollar balance (balance_usd formatted in dollars, balance in micro-US-dollars), plan, limits, and the plans and credit packs on offer. Runs are charged to this balance; a run that the balance cannot cover is refused with 402 when it starts. This tool only reads: the account owner buys credit or changes plan in the Plori web app (prices: https://plori.ai/pricing). It returns only the authenticated account's own balance, never the balance of an account that shares Workspaces with it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| packs | Yes | Credit packs this account can buy. Each pack's usd_cents is its price in US cents and its credits are what the purchase adds to balance. | |
| plans | Yes | Subscription plans on offer, with their monthly credit grant. | |
| limits | Yes | The caps this account's plan tier enforces. | |
| balance | Yes | The account's remaining prepaid balance, in credits. 1,000,000 credits = 1 US dollar. | |
| user_id | Yes | The identifier of the account this balance belongs to. | |
| audience | Yes | anon: an anonymous trial; registered_free: a registered account without an active subscription; subscribed: an account with an active subscription. | |
| plan_tier | Yes | The plan tier this account resolves to: free, pro or power. An account with no active plan is free. | |
| active_plan | Yes | The account's current subscription, or null when it has none and is on the free tier. | |
| balance_usd | Yes | The account balance formatted in US dollars, without a currency symbol. | |
| account_email | Yes | The email address of the account this balance belongs to. | |
| can_manage_billing | Yes | Whether this account has a billing portal to manage its subscription (it has, or had, a plan); false for an anonymous trial. | |
| low_credit_threshold | Yes | The balance, in the same credits, below which this account is warned it is running low. |