Get Plan and Allowances
getWorkspacePlanThe workspace's plan and tier, when the billing period starts and renews, purchased credit left (total in cents, currency, and display as the amount to quote, or null), a custom deal's summary (state, dates, and quota granted, used and remaining each with display; or null), and each free allowance with what is used. Quote an amount by its display text exactly as returned; never add or convert amounts. Use when: someone asks what plan they are on, what it includes, when it renews or how much credit is left. Owner or billing admin only; other roles get 403. Only a person signed in to the nopaque web app can call this; an API key is refused.
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": {
"workspaceId": "<workspaceId>"
},
"name": "getWorkspacePlan"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workspaceId | Yes | Workspace identifier. Must be the caller's current workspace. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| deal | Yes | A custom deal's summary, or null when there is no deal. Quota amounts are minor units of `currency`; quote their `display`. Per-minute rates are not included. | |
| plan | Yes | The plan the workspace is on (auth's effectiveTier). | |
| tier | Yes | The stored subscription tier. | |
| credit | Yes | Purchased credit left, as the Billing page shows it, or null when the workspace has no billing account yet. Quote `display`. | |
| freePools | Yes | The Free tier's monthly free allowances. Empty on any other plan, where they are not counted down. | |
| periodEnd | No | ||
| balanceLeft | Yes | What is left to draw usage from, one line per name as the Billing page lists it: a plan's licence, a free allocation, a pack. Drained lines are left out. Quote `display`. | |
| periodStart | No |