Skip to main content
Glama

Context Optimizer MCP Server

runAndExtract

Execute terminal commands and extract specific information from their output using natural language prompts to reduce data processing overhead.

Instructions

Execute terminal commands and intelligently extract specific information from their output. Supports cross-platform command execution with security controls.

Input Schema

NameRequiredDescriptionDefault
extractionPromptYesNatural language description of what information to extract from the command output. Examples: "Show me the raw output", "Summarize the results", "Extract all error messages", "Find version numbers", "List all files", "Did the command succeed?", "Are there any warnings?"
terminalCommandYesShell command to execute. Must be non-interactive (no user input prompts). Navigation commands (cd, pushd, etc.) are not allowed - use workingDirectory instead.
workingDirectoryYesFull absolute path where command should be executed (e.g., "C:\Users\username\project", "/home/user/project"). Must be within configured security boundaries.

Input Schema (JSON Schema)

{ "properties": { "extractionPrompt": { "description": "Natural language description of what information to extract from the command output. Examples: \"Show me the raw output\", \"Summarize the results\", \"Extract all error messages\", \"Find version numbers\", \"List all files\", \"Did the command succeed?\", \"Are there any warnings?\"", "type": "string" }, "terminalCommand": { "description": "Shell command to execute. Must be non-interactive (no user input prompts). Navigation commands (cd, pushd, etc.) are not allowed - use workingDirectory instead.", "type": "string" }, "workingDirectory": { "description": "Full absolute path where command should be executed (e.g., \"C:\\Users\\username\\project\", \"/home/user/project\"). Must be within configured security boundaries.", "type": "string" } }, "required": [ "terminalCommand", "extractionPrompt", "workingDirectory" ], "type": "object" }

Other Tools from Context Optimizer MCP Server

Related Tools

    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/malaksedarous/context-optimizer-mcp-server'

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