Skip to main content
Glama

execute_system_command

Executes system commands on the server for file operations, process management, and system administration tasks.

Instructions

Executes system commands on the server. Useful for file operations, process management, and system administration.

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": {
      "command": "<command>"
    },
    "name": "execute_system_command"
  }
}

Input Schema

NameRequiredDescriptionDefault
commandYesThe system command to execute (e.g., "ls -la", "whoami", "pwd")

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.1/5.0
Behavior2/5

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

No annotations exist, so the description carries the full behavioral burden, and it discloses almost nothing: not whether commands run with server-level privileges, whether execution is sandboxed, whether there is a timeout, whether the call blocks, or whether effects are irreversible. For arbitrary shell execution this is a major omission, though naming the server as the execution context is some disclosure.

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 short sentences, front-loaded with the core action and with no filler or repetition. The second sentence earns its place by scoping use cases, though it is generic enough that little would be lost if tightened.

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

Completeness2/5

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

For an unannotated, unrestricted shell-execution tool with no output schema, the definition should explain what is returned (stdout, exit code, stderr), permission requirements, and safety expectations. None of that is present, leaving an agent unable to predict the result or the risk of a call.

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

Parameters3/5

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

The single parameter is fully documented in the schema (100% coverage) with concrete examples like "ls -la" and "whoami," so the schema does the heavy lifting. The description adds no additional meaning about the command string beyond what the schema already provides, making the baseline 3 appropriate.

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?

States a specific verb and resource: "Executes system commands on the server," and the second sentence scopes it to file operations, process management, and system administration. It does not, however, distinguish this from sibling tools like read_file or get_environment, which cover overlapping ground.

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?

The phrase "Useful for file operations, process management, and system administration" implies when the tool applies but gives no exclusions, no prerequisites, and does not point to safer siblings such as read_file or get_environment for narrower tasks. Usage is left to inference.

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