Account and credits
prism_get_accountReturns this Revalidata account's credits and prices: credits remaining, the price per contract ($0.50), whether an Unlimited subscription covers everything, and how many contracts were added this month. creditStatus is unlimited, ok, low (2 or fewer left) or empty -- check it before a batch and, when it is low or empty, ask your user before calling prism_buy_credits. purchaseOptions.checkoutLink says whether that returns a checkout link for your user to pay.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "prism_get_account"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pricing | Yes | ||
| nextStep | Yes | What the agent should do next, in plain words; null when nothing is needed. A step that would spend credits or money says to ask your user first: do not take it on your own. | |
| creditStatus | Yes | Where the account's credits stand: unlimited (subscription), ok, low (2 or fewer left), or empty (none; unlocking a preview that withholds facts returns code insufficient_credits). | |
| purchaseOptions | Yes | Which ways of buying credits are available right now. | |
| creditsRemaining | Yes | ||
| lowCreditThreshold | Yes | creditStatus is low at this many credits or fewer. | |
| monthlyContractLimit | Yes | ||
| unlimitedSubscription | Yes | Whether an Unlimited subscription covers every contract. | |
| contractsAddedThisMonth | Yes |