Skip to main content
Glama
Ichikawashadow

codex-mcp-opencode

Run an OpenCode coding task

opencode.run
Destructive

Create or resume a project-local session to implement a concise coding task in your current project. Options include session reuse and native background subagents.

Instructions

Creates or resumes a project-local OpenCode session and executes a concise task. This may edit the current project.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
taskYesA concise implementation instruction. OpenCode reads the current project itself.
modelNoAn existing OpenCode provider/model ID.
reuseNoReuse a recent compatible primary session; defaults to true.
sessionIdNoAn existing OpenCode session ID to resume.
asynchronousNoReturn after OpenCode accepts the task; use sessions to inspect or cancel it.
backgroundSubagentsNoAllow only OpenCode native background subagents for independent work.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
asyncYes
outputNo
reusedYes
statusYes
modelIdNo
sessionIdYes
Behavior2/5

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

Annotations already indicate destructiveHint=true and readOnlyHint=false. The description adds that it may edit the project, but does not disclose other behavioral traits like authentication, rate limits, or what happens to existing sessions.

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?

Two sentences that are direct and front-loaded. Every word is essential, no redundancy.

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

Completeness3/5

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

Adequate given the output schema exists and parameters are documented. However, could provide more context about asynchronous behavior or integration with other tools.

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 description coverage is 100%, so the schema already documents all parameters. The description adds minimal context about the 'task' parameter (reads project itself), but no significant value beyond the schema.

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 it creates/resumes a session and executes a task, possibly editing the project. However, it does not differentiate from the sibling tool opencode.run_task, which likely has similar functionality.

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?

No explicit guidance on when to use this tool versus alternatives like opencode.run_task or opencode.sessions. The description does not specify prerequisites or exclusions.

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/Ichikawashadow/codex-mcp-opencode'

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