Skip to main content
Glama

execute_command

Run a security-validated custom command on a Google Cloud VPS instance for predefined safe operations, using the specified project, instance, and working directory.

Instructions

Execute a custom command on the VPS with security validation. Only allows safe, predefined operations.

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": {
      "projectId": "<projectId>",
      "instanceName": "<instanceName>",
      "command": "<command>"
    },
    "name": "execute_command"
  }
}

Input Schema

NameRequiredDescriptionDefault
commandYesCommand to execute (validated for security)
projectIdYesGoogle Cloud project ID
workingDirNoWorking directory for the command
instanceNameYesVPS instance name

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full disclosure burden, and it leaves the critical traits unstated: whether the command is destructive, what happens to running services, whether permissions or elevated auth are required, and whether output is returned. 'Security validation' and 'safe, predefined operations' hint at restrictiveness but give no concrete policy an agent could rely on, and they sit in tension with 'custom command.'

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 verb and resource, with no filler. Brevity here borders on under-specification rather than padding, but nothing is wasted.

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

Completeness3/5

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

For a high-risk command-execution tool with no annotations and no output schema, the definition is thinner than the stakes warrant: the allowed operation set, failure behavior, and side effects are all unstated. The 100% schema coverage offsets some of this, keeping it at minimum viable rather than inadequate.

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?

Schema description coverage is 100% and every parameter (projectId, instanceName, command, workingDir) is documented in the schema, so the baseline is 3. The description adds nothing about command syntax, quoting, or how workingDir affects execution.

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: 'Execute a custom command on the VPS,' with the security-validation qualifier. It does not distinguish itself from siblings like restart_service or troubleshoot_logs, and the pairing of 'custom command' with 'predefined operations' muddies the scope.

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

Usage Guidelines2/5

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

There is no explicit when-to-use guidance, no when-not-to-use conditions, and no named alternative such as restart_service or vps_setup for routine VPS actions. The only steer is the implicit limit of 'safe, predefined operations,' which an agent cannot act on without knowing what those operations are.

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