Skip to main content
Glama

bash

Execute shell commands with persistent session support, maintaining working directory, environment variables, and shell state across multiple calls for consistent command execution.

Instructions

Execute shell commands with persistent session support. Sessions maintain working directory, environment variables, and shell state across calls. Use session_id to manage multiple independent shell sessions. Use disconnect=true to close a session. Platform: bash/sh on Unix, PowerShell/git-bash/cmd on Windows (auto-detected, best available).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
commandYesShell command to execute
cwdNoInitial working directory (only used when creating a new session)
session_idNoSession identifier for persistent shell. Default: default
timeout_secNoCommand timeout in seconds (default 120, max 600)
disconnectNoClose the shell session

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/knewstimek/agent-tool'

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