Skip to main content
Glama

nice

Destructive

Run a command with adjusted CPU scheduling priority. Use positive niceness values to lower priority for background tasks, reducing CPU impact.

Instructions

Run a command with adjusted CPU scheduling priority (niceness). Executes the given command as a subprocess, captures bounded stdout/stderr, and enforces a safety timeout. Use --dry_run to preview without execution. Positive niceness lowers priority for background tasks; negative values may require elevated privileges. Use to reduce CPU impact of background work. Not for I/O buffering control — use 'stdbuf'. Not for hangup immunity — use 'nohup'. Not for time-bound execution — use 'timeout'. See also 'stdbuf', 'nohup', 'timeout'.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dry_runNoReport without running the command.
timeoutNoSafety timeout for the command.
adjustmentNoNiceness adjustment.
command_argsNoCommand and arguments to run.
max_output_bytesNoMaximum captured stdout/stderr bytes each.
Behavior4/5

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

Description adds behavioral context beyond the destructiveHint annotation: it explains subprocess execution, bounded output capture, safety timeout, and dry run capability. It also notes privilege requirements for negative adjustments. Almost fully transparent.

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

Conciseness5/5

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

Concise and well-structured: starts with core purpose, then details behavior and options, followed by clear exclusions. Every sentence adds value without redundancy.

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?

For a tool with 5 parameters and no output schema, the description covers behavior, usage, and limitations well. It lacks explicit mention of return values or error handling, but these are somewhat implied by the subprocess description and timeout feature.

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 baseline is 3. The description adds semantic value by explaining how adjustment affects priority (positive lowers, negative may need privileges) and clarifying dry_run as a preview mechanism, enhancing understanding beyond schema descriptions.

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 clearly states it runs a command with adjusted niceness, specifying the verb and resource. It effectively distinguishes from sibling tools by explicitly stating what it is not for (I/O buffering, hangup immunity, time-bound execution).

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?

Provides explicit when-to-use guidance (reduce CPU impact of background tasks) and when-not-to-use with named alternatives (stdbuf, nohup, timeout). Also mentions dry_run for preview, offering a testing option.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/caseSHY/AI-CLI'

If you have feedback or need assistance with the MCP directory API, please join our Discord server