Set Module Resources
set_module_resourcesSet a module's CPU and memory and rebuild it so its pods take them. The allocation is checked against the resource pool's capacity first; a refused one is restored. The operation is ASYNCHRONOUS: poll the returned job_id with get_job_status. One operation runs on a module at a time, and none beside an operation on its project: the refusal names the running job; wait for it with get_job_status, then call again. While RationalBloks is being updated, the call is refused with 'RationalBloks is being updated': call it again in a few minutes.
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": {
"module_id": "<module_id>",
"cpu_millicores": "<cpu_millicores>",
"memory_mb": "<memory_mb>"
},
"name": "set_module_resources"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| memory_mb | Yes | Memory allocation in MB | |
| module_id | Yes | Module ID (list_modules) | |
| cpu_millicores | Yes | CPU allocation in millicores |