Skip to main content
Glama
Gemini Remote Agent MCP

Gemini Remote Agent MCP

by lisycotana

run_command

Destructive

Executes non-interactive shell commands inside a scoped workspace, applying timeouts and output limits for controlled automation and diagnostics.

Instructions

Run a non-interactive shell command. OS isolation is required for untrusted callers.

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": "run_command"
  }
}

Input Schema

NameRequiredDescriptionDefault
cwdNo.
commandYes
timeout_secNo
max_output_charsNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.1/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=true, openWorldHint=true and idempotentHint=false, so the safety profile is carried by structured data. The description adds real value with the non-interactive constraint and the isolation prerequisite, but says nothing about timeout enforcement or output truncation behavior, which matter for a destructive execution tool.

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 with no filler, and the core action is front-loaded ahead of the conditional isolation note. It is efficient, though the brevity comes at the cost of the parameter detail the definition otherwise lacks.

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 a four-parameter, destructive, open-world execution tool with zero schema description coverage, the description should cover timeout behavior, output truncation and working-directory defaults; an output schema exists so return values need not be restated. As written, the agent must guess at three of four parameters' semantics.

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

Parameters2/5

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

Schema description coverage is 0%, so all four parameters (cwd, command, timeout_sec, max_output_chars) rely on bare titles. The description does not explain working-directory resolution, timeout semantics on expiry, or that output is capped by max_output_chars, so it fails to compensate for the coverage gap.

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: 'Run a non-interactive shell command.' An agent can tell this is raw command execution rather than file editing or background job management. It does not explicitly contrast itself with siblings such as start_bg_job, so it falls short of a 5.

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 description gives one usage constraint — that the command must be non-interactive — and a security precondition that OS isolation is required for untrusted callers. It gives no guidance on when to prefer it over siblings like start_bg_job for long-running work or grep_search/read_file for inspection, leaving the routing choice implicit.

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