Skip to main content
Glama
yunhai-dev

exec-dir-mcp

by yunhai-dev

execute_command

Run shell commands in a specified directory with configurable timeout and working directory, providing safe execution with directory restrictions and detailed logging.

Instructions

在指定文件夹中执行命令。默认目录: /app

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
commandYes要执行的命令(shell 命令)
timeoutNo超时时间(秒),默认30秒
working_dirNo工作目录的路径(可选,默认: /app)
Behavior2/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. Executing arbitrary shell commands is a powerful, potentially destructive operation, yet the description doesn't disclose side effects, permissions required, whether commands run as privileged user, or any safety caveats. This is a significant gap for a command 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?

The description is extremely brief (one sentence), which is efficient, but at the cost of substance. It's front-loaded with the core purpose and the default directory. Minimal waste, but oversimplified.

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 shell command execution tool with no annotations and no output schema, the description is inadequate. It doesn't describe return values/output capture, exit code handling, whether stderr/stdout are returned, or error behavior under failures. A command runner needs substantially more behavioral documentation for an agent to use it safely and correctly.

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 coverage is 100%, so all three parameters (command, timeout, working_dir) are documented in the schema. However, the description adds essentially no meaning beyond the schema—it only restates the default working directory. It doesn't clarify timeout semantics (what happens on timeout), command syntax expectations, or how working_dir interacts with the default.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description accurately states it executes commands in a specified folder, which conveys the basic verb+resource purpose. However, it lacks a specific action verb beyond 'execute' and there are no sibling tools to differentiate against, so it's clear but minimal.

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?

No guidance is provided on when to use this tool versus alternatives, and there are no sibling tools to reference. It doesn't mention when command execution is appropriate, security considerations, or scenarios where this tool would be the right choice.

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/yunhai-dev/exec-dir-mcp'

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