Account, plan and limits
pinin_get_accountRead the account tied to an API key to check plan, credit balance, batch cap, concurrency, rate and monthly limits, and active keys before large batches or after balance failures.
Instructions
Read the account behind the key: plan tier and status, credit balance, batch cap, concurrency, the key's requests per minute, the monthly cap and spend so far, and how many keys are active. Read it before queueing a large batch to size the request, and after a plan or balance failure — it stays readable on an empty balance, so a blocked account can see why. Read-only and free. For per-day history use pinin_get_usage.
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": "pinin_get_account"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| plan | No | `{ tier, status, credits, renews_at }` — `status` is `active` for a usable account. | |
| No | Account email. | ||
| limits | No | `{ batch_cap, concurrency, requests_per_minute, monthly_credit_cap, monthly_credit_spend }` — size batches to `batch_cap` and stay under `concurrency`. | |
| object | No | Always `account`. | |
| keys_active | No | Active API keys on the account. |