Set an account's resource ceiling
set_user_resourcesSets an account's maximum CPU cores and memory for jobs across all machines, replacing plan limits; pass null to revert to the plan.
Instructions
Admins only, hosted plans: the most cores and memory one account's jobs hold at once across every machine, replacing the plan's (Free 2 cores / 2400 MB up to Pro 8 / 9600). A scan past it gets fewer threads; a render past it goes back to the queue until the account's other work ends, so it never holds a worker slot. null follows the plan again. Applies to the next lease. Refused on a self-hosted instance (no plans: the host's capacity is the only limit). Returns { ok, resources }.
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>",
"resources": "<resources>"
},
"name": "set_user_resources"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| userId | Yes | Account id (from list_users or get_queue owners) | |
| resources | Yes | { maxCores, maxMemMB }, or null to follow the plan |