Skip to main content
Glama

Ferrite

Set an app compute limit

set_compute_limit
DestructiveIdempotent

Set both finite per-replica compute axes on an owned deployment without changing its artifact: memory_mb and cpu_percent (100 = one core). The front re-runs account admission and the worker applies the new cgroup bound; use status to observe the exact admitted hold and rollout.

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": {
      "app": "<app>",
      "memory_mb": "<memory_mb>",
      "cpu_percent": "<cpu_percent>"
    },
    "name": "set_compute_limit"
  }
}

Input Schema

NameRequiredDescriptionDefault
appYes
tokenNofallback bearer for clients that cannot send an Authorization header; when a header is present omit this argument, because a different token is refused
memory_mbYes
cpu_percentYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true and idempotentHint=true, and the description adds real mechanics beyond them: the front re-runs account admission and the worker applies the new cgroup bound, and the artifact is untouched. It still does not explain what makes the call destructive (e.g., replica restarts, throttling or OOM risk when lowering a limit), which is the main open question for a destructive write.

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?

Two tight sentences, front-loaded with the verb and scope before the mechanics. Terminology like 'admitted hold' is jargon-dense but each clause carries information; no filler.

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

Completeness3/5

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

There is no output schema, four parameters, and low schema coverage, so the description needs to do more. It covers the core semantics and gives an observability path via `status`, but omits validation ranges, failure modes, and the concrete consequence of the destructive flag for a mutation on a live deployment.

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 only 25% — only `token` is documented in the schema — so the description must carry the load for the rest. It does: it explains that `cpu_percent` is scaled (100 = one core), that both axes are set together, and that `app` must be an owned deployment, which is more than the bare integer/string types convey. It leaves `memory_mb` units and valid ranges implicit.

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 uses a specific verb and resource ('Set both finite per-replica compute axes on an owned deployment') and names the exact knobs it writes (memory_mb, cpu_percent). It also scopes the operation by stating it does not change the artifact, which separates it from deploy/release tools. It stops short of naming a sibling it is not (e.g., autoscale), so it is clear but not fully differentiated.

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

Usage Guidelines3/5

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

Usage is implied by 'owned deployment' and the explicit pointer to `status` for observing the admitted hold and rollout. There is no statement of when to prefer this over autoscale or other capacity tools, and no exclusions or prerequisites such as required permissions or valid ranges.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.