Skip to main content
Glama
AndersHsueh

AX Local Operations MCP Server

by AndersHsueh

execute_command

Destructive

Execute shell commands with support for pipes, redirection, and configurable options like working directory, timeouts, and output formats.

Instructions

命令执行:在系统中执行shell命令。支持管道、重定向,集成命令策略评估和sudo配置。

示例:列出文件 { "command": "ls -la", "output_format": "json" } 示例:带工作目录执行 { "command": "npm test", "working_directory": "/project", "timeout_ms": 120000 }

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
commandYes要执行的系统命令,支持管道和重定向
working_directoryNo工作目录路径,所有相对路径以此为基础解析
confirmNo确认执行高风险命令,需要在 warn 策略下设为 true
timeout_msNo超时时间(毫秒),防止命令长时间阻塞,默认60000
stdout_maxNostdout最大输出长度,超出会被截断,默认4000
stderr_maxNostderr最大输出长度,超出会被截断,默认2000
output_formatNo输出格式:text(纯文本)、json(结构化JSON)、both(两者兼有)

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
cwdNo工作目录
statusNo执行状态:ok/error/need_confirm
stderrNo错误输出
stdoutNo标准输出
commandNo执行的命令
exit_codeNo进程退出码
truncatedNo输出是否被截断
duration_msNo执行耗时(毫秒)
Behavior4/5

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

The description adds valuable context beyond annotations: it mentions support for pipes and redirection, integration with command policy evaluation, and sudo configuration. Annotations indicate destructiveHint=true, which aligns with the tool's nature as a command executor, and the description doesn't contradict this. However, it lacks details on rate limits, authentication needs, or specific error behaviors.

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 front-loaded with the core purpose in the first sentence, followed by key features and two concise examples. Each sentence adds value, such as clarifying capabilities and providing usage scenarios, though the examples could be integrated more seamlessly into the text.

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

Completeness4/5

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

Given the tool's complexity (destructive operation with 7 parameters) and the presence of annotations and an output schema, the description is reasonably complete. It covers the tool's purpose, key features, and examples, though it could benefit from more explicit usage guidelines and behavioral details like error handling or security considerations.

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?

With 100% schema description coverage, the input schema fully documents all 7 parameters. The description provides examples that illustrate usage (e.g., command with output_format, working_directory with timeout_ms) but doesn't add significant semantic meaning beyond what's already in the schema descriptions. This meets the baseline for high schema coverage.

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?

The description clearly states the tool's purpose as '在系统中执行shell命令' (execute shell commands in the system) with specific capabilities like supporting pipes and redirection. It distinguishes itself from sibling tools like file operations or task management by focusing on raw command execution, though it doesn't explicitly contrast with alternatives like sudo_config.

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?

The description provides no guidance on when to use this tool versus alternatives. While it mentions integration with command policy evaluation and sudo configuration, it doesn't specify scenarios where this tool is preferred over other tools like task_manager or sudo_config, nor does it outline prerequisites or exclusions for usage.

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/AndersHsueh/Ax-LocalTools-MCP'

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