Skip to main content
Glama

Serena

by oraios

execute_shell_command

Run shell commands and capture output safely with this tool. Specify the command, working directory, and output length limit. Returns stdout and stderr in JSON format for easy integration.

Instructions

Execute a shell command and return its output. If there is a memory about suggested commands, read that first. Never execute unsafe shell commands like rm -rf / or similar!. Returns a JSON object containing the command's stdout and optionally stderr output.

Input Schema

NameRequiredDescriptionDefault
capture_stderrNoWhether to capture and return stderr output.
commandYesThe shell command to execute.
cwdNoThe working directory to execute the command in. If None, the project root will be used.
max_answer_charsNoIf the output is longer than this number of characters, no content will be returned. Don't adjust unless there is really no other way to get the content required for the task.

Input Schema (JSON Schema)

{ "properties": { "capture_stderr": { "default": true, "description": "Whether to capture and return stderr output.", "title": "Capture Stderr", "type": "boolean" }, "command": { "description": "The shell command to execute.", "title": "Command", "type": "string" }, "cwd": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "description": "The working directory to execute the command in. If None, the project root will be used.", "title": "Cwd" }, "max_answer_chars": { "default": 200000, "description": "If the output is longer than this number of characters,\nno content will be returned. Don't adjust unless there is really no other way to get the content\nrequired for the task.", "title": "Max Answer Chars", "type": "integer" } }, "required": [ "command" ], "title": "applyArguments", "type": "object" }

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/oraios/serena'

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