Admin: grant credits
admin_grant_creditsAdmin only: add tokens to one user's top-up balance for the current month, for internal work such as demos, marketing or QA (no Stripe charge). tokens is at most 100000 per call and reason is required and stored with the grant. Each call adds again, so a retry grants twice. Returns { userId, monthKey, granted, topUpTokens, internalGrantedTokens, tokensUsed }. userId comes from admin_list_users.
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": {
"userId": "<userId>",
"tokens": "<tokens>",
"reason": "<reason>",
"context": "<context>"
},
"name": "admin_grant_credits"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reason | Yes | Why; stored with the grant. | |
| tokens | Yes | Tokens to add; the server refuses more than 100000 per call. | |
| userId | Yes | Cognito sub, from admin_list_users. | |
| context | Yes | A few words on why you are calling this tool, for the server developer's analytics. Describe people and things by role, such as "a customer". Do not quote the user or include names, emails, or other personal details. | |
| llm_model | No | The model identifier you are running as, for example "claude-opus-4-8" or "gpt-5.2". Pass "unknown" if you are not certain. Recorded for the server developer's analytics. | |
| conversation_id | No | The conversation_id this server returned earlier in this conversation, unchanged, including after later user messages. Omit it if you have none. Recorded for the server developer's analytics. |