Skip to main content
Glama
ecp-mcp-server

ecp-mcp-server

by EpicLabs23

ecp_shell_exec

Run a shell command in a hosting account container as the account user and return exit code, stdout, and stderr, with every command requiring approval before execution.

Instructions

Run one shell command (bash -lc) in this hosting account's container as the account user and return its exit code, stdout and stderr. The user is asked to approve every command before it runs; if they decline, nothing runs. Non-interactive: no TTY and no stdin, so anything that prompts (sudo, interactive installers, read) fails immediately instead of waiting. timeout_seconds defaults to 60, max 300 - the whole process tree is killed at the timeout, so don't use this to start long-running servers (use ecp_apps_deploy_step start or ecp_supervisor_* instead). stdout/stderr are each capped at 512 KB (see *_truncated). cwd defaults to the account's home directory; a relative cwd is resolved against it. Prefer a dedicated tool when one exists (files, databases, git pull, asdf, supervisor) - they're safer and give structured results.

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

Input Schema

NameRequiredDescriptionDefault
cwdNo
commandYes
timeout_secondsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.4.0

TDQS

A4.9/5.0
Behavior5/5

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

No annotations are supplied, so the description carries the full burden and does it well: per-command user approval with a no-run-on-decline guarantee, non-interactive execution with no TTY/stdin so prompts fail fast, process-tree kill at timeout, and 512 KB caps on stdout/stderr with *_truncated flags. These are exactly the runtime traits an agent cannot infer from the schema.

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?

Front-loaded with the action and scoping, and nearly every sentence adds an operational constraint. It is a dense single block with no line breaks or grouping, which slightly hurts scanability, but there is little filler to cut.

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 an unannotated, output-schema-less exec tool, the description covers approval flow, interactivity limits, timeout semantics, output truncation, working directory, and sibling alternatives. Nothing an agent needs to call it safely is missing.

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

Parameters5/5

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

Schema description coverage is 0%, yet the description documents all three parameters: command runs via bash -lc and is non-interactive, timeout_seconds defaults to 60 with a 300 max and kills the whole process tree, and cwd defaults to the account home with relative paths resolved against it.

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 and resource ('Run one shell command (bash -lc) in this hosting account's container as the account user') and immediately names the returns. The scope (one command, account user, container) distinguishes it from deployment, git, or supervisor siblings.

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?

Explicitly says what not to use it for (long-running servers) and points to the alternatives (ecp_apps_deploy_step start, ecp_supervisor_*). It also adds a general preference rule: use dedicated tools for files, databases, git pull, asdf, supervisor when one exists.

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

Deploy Server

Other Tools