Skip to main content
Glama
3230390742

local-agent-mcp

by 3230390742

Run Codex CLI

codex_run

Runs Codex CLI non-interactively in a sandboxed working directory. Returns summaries of commands, file changes, and errors, with read-only access by default.

Instructions

Run the locally installed, logged-in Codex CLI non-interactively in a sandboxed working directory. Defaults to read-only. Use workspace_write only when writes are enabled server-side. Returns the final agent message plus command/file-change/error summaries.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cwdYesAbsolute path to an allowed working directory.
modeNoread_only (default) or workspace_write.read_only
modelNoOptional model override.
promptYesInstructions for Codex.
output_modeNofinal summary or full raw events.final
timeout_secondsNoTimeout in seconds (10-3600).
Behavior4/5

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

With no annotations, the description discloses key behaviors: local installation requirement, non-interactive mode, sandbox, default read-only, and return structure (final message plus summaries). Warns about enabling writes via workspace_write.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three succinct sentences, each providing distinct value: purpose, usage guideline, and return description. No redundancy or unnecessary detail.

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 6 parameters and no output schema, the description covers the tool's purpose, key behavioral constraints, and output summary. Could briefly elaborate on 'events' output mode for full completeness.

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?

Schema has 100% parameter description coverage, so baseline is 3. The description adds context for the mode parameter (when to use workspace_write) and hints at return format, but does not significantly enhance understanding of other parameters.

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?

Clearly identifies the tool as running Codex CLI non-interactively in a sandbox, with a default read-only mode. However, it does not explicitly differentiate from sibling tools like opencode_run, limiting clarity slightly.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Provides explicit guidance: 'Use workspace_write only when writes are enabled server-side.' This helps the agent decide when to use each mode. Missing contrast with opencode_run or other alternatives.

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/3230390742/local-agent-mcp'

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