Skip to main content
Glama

Set an account's resource ceiling

set_user_resources
Idempotent

Sets 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

NameRequiredDescriptionDefault
userIdYesAccount id (from list_users or get_queue owners)
resourcesYes{ maxCores, maxMemMB }, or null to follow the plan

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.51.1

TDQS

A4.3/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With only idempotentHint supplied, the description carries the behavioral load and does so thoroughly: scans exceeding the cap get fewer threads, renders exceeding it requeue and never hold a worker slot, the value applies to the next lease, and it is refused on self-hosted hosts. It even discloses the return shape ({ ok, resources }) since no output schema exists.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

It is front-loaded with the gating condition ('Admins only, hosted plans') and every clause carries information about behavior or constraints; nothing is filler. The prose is dense and slightly run-on, but no sentence could be removed without losing an operational fact.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a two-parameter mutation tool with no output schema and minimal annotations, the description covers authorization, platform applicability, non-retroactive timing, over-cap consequences, null semantics, and the response shape. An agent can call it correctly and predict the effects without any other source.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds decision-relevant context beyond the schema: the plan defaults the value replaces (Free 2 cores / 2400 MB up to Pro 8 / 9600) and the concrete meaning of null (follow the plan again). That helps an agent pick a value rather than just knowing the field types.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names the exact quantity being set (the max cores and memory one account's jobs may hold at once across every machine) and pairs it with the title's 'resource ceiling', so the verb+resource is unambiguous. It does not explicitly differentiate itself from siblings, but no sibling in the list plausibly overlaps with per-account core/memory caps.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives clear preconditions: admins only, hosted plans only, and explicitly refuses on self-hosted instances where the host capacity is the only limit. It also explains that null reverts to the plan default and that the change applies to the next lease rather than retroactively. No explicit alternative tool is named, but no close alternative exists.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools