Skip to main content
Glama

set_efficiency_mode

Idempotent

Turns efficiency mode on or off for a process so background programs yield CPU and disk I/O to active work.

Instructions

Turns efficiency mode on or off for a process: on, every thread runs only when no one else wants the processor (the idle scheduling class), and its disk I/O likewise; off, the normal class again. For a background program that takes the processor from what the user is doing; set_priority changes the priority alone, set_affinity the cores. It lasts until the process ends. Critical processes and Anabolic are refused; a game or anti-cheat program needs force=true after the user agreed. Another user's process needs Anabolic's full access (cap_sys_nice).

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>",
      "on": "<on>"
    },
    "name": "set_efficiency_mode"
  }
}

Input Schema

NameRequiredDescriptionDefault
onYesTrue turns it on, false back off (normal priority again).
pidYesThe process ID (list_processes gives it).
forceNoTrue only after the user agreed to the risk this tool described.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.6.0
    • addedInput schema / properties / force / description
      Added value: +"True only after the user agreed to the risk this tool described."
    • changedInput schema / properties / on / description
      Previous value: -"On: Windows runs it at low priority on efficient cores and clocks."New value: +"True turns it on, false back off (normal priority again)."
    • addedInput schema / properties / pid / description
      Added value: +"The process ID (list_processes gives it)."
  2. First observedv0.1.0

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only say non-read-only, idempotent, non-destructive; the description goes well beyond them by disclosing the reversible-but-persistent lifetime ('lasts until the process ends'), the refusal policy, and the consent gate around force. The permission prerequisite for other users' processes is exactly the kind of operational context annotations cannot express.

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?

Core purpose is front-loaded in the first clause and the density is justified by real constraints (refusals, force, capability). The middle clause ('For a background program ... set_affinity the cores') is a sentence fragment chained by semicolons, which slightly hurts readability but wastes no words.

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 mutating, 3-parameter tool with no output schema, the description covers everything an agent needs: what changes, how long it lasts, who is refused, when force is needed, and what access is required. Nothing material is left to inference.

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 still adds meaning: it explains what 'on' actually does at the scheduler level rather than restating the boolean, and it frames force as a consent-triggered escalation tied to games/anti-cheat. The pid parameter gets nothing beyond the schema, which already points at list_processes.

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?

States a specific verb+resource ('Turns efficiency mode on or off for a process') and immediately defines what the state means mechanically (idle scheduling class for CPU and disk I/O). It explicitly distinguishes itself from set_priority and set_affinity, so an agent can separate it from siblings without opening their schemas.

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

Usage Guidelines5/5

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

Gives a concrete trigger ('For a background program that takes the processor from what the user is doing') and names the two alternative tools with the axis each one changes. It also documents when the call will be refused (critical processes, Anabolic), when force=true is required (games/anti-cheat after user consent), and the cross-user permission prerequisite (cap_sys_nice).

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