Skip to main content
Glama

limit_process

Idempotent

Caps a process and its child processes to a specified CPU share and private memory limit on Windows; excess memory requests fail until the process exits or the cap is lifted.

Instructions

Holds a process, and the processes it starts from now on, to a share of the machine's CPU and to an amount of private memory (Windows job objects: a cap the scheduler keeps, whatever the priority). Past the memory limit its requests for more fail, and most programs then stop with an error. Lasts until it exits or Anabolic quits; lift_limit takes it away. Windows' core processes and anti-cheat programs are refused.

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": {
      "pid": "<pid>"
    },
    "name": "limit_process"
  }
}

Input Schema

NameRequiredDescriptionDefault
pidYesThe process ID (list_processes gives it).
forceNoTrue only after the user agreed to the risk this tool described.
memory_gbNoThe most private memory it may commit, GB, with what it starts.
cpu_percentNoThe most of the whole machine's CPU it may use, percent (1 to 99), as list_processes counts it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.6.0
    • addedInput schema / properties / force / description
      Added value: +"True only after the user agreed to the risk this tool described."
    • addedInput schema / properties / pid / description
      Added value: +"The process ID (list_processes gives it)."
  2. First observedv0.1.0

TDQS

A4.5/5.0
Behavior5/5

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

Beyond the annotations, the description discloses the enforcement mechanism (job object, scheduler keeps the cap regardless of priority), the concrete failure behavior past the memory cap ('requests for more fail, and most programs then stop with an error'), inheritance to child processes, and the lifetime of the limit. That is exactly the risk context an agent needs before a mutating call that annotations only label as non-destructive.

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?

Four dense sentences with no filler, and the mechanism, consequence, duration, and undo path arrive in that order. The opening clause is somewhat packed, but every sentence contributes information.

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

Completeness4/5

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

With no output schema and no annotations covering risk, the description carries most of the burden and does so well for a mutation tool: mechanism, blast radius, lifetime, removal, and refusals. The remaining gaps are whether force overrides the refusal list and whether any elevation is required.

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 meaning the schema does not: the CPU percentage is measured 'as list_processes counts it', the memory value is private commit rather than working set, and both limits extend to processes started later. It does not describe what force actually bypasses.

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

Purpose5/5

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

The description names a specific action and mechanism: holding a process and its future children to a CPU share and private-memory amount via Windows job objects. It is clearly distinguishable from set_priority, set_affinity, and lift_limit, which regulate other properties or undo this one.

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 states the removal path explicitly ('lift_limit takes it away') and notes the exclusion of core Windows processes and anti-cheat programs, which is real when-not guidance. It does not state a positive use case ('use when a process hogs CPU') or explain when the force parameter overrides the refusals.

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