Skip to main content
Glama

opencode_shell_execute

Destructive

Run shell commands in an OpenCode session to delegate coding tasks, debugging, and refactoring across projects.

Instructions

Run a shell command through the opencode session

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
agentYesAgent to use for the shell command
commandYesShell command to execute
modelIDNoModel ID
directoryNoAbsolute path to the project directory. When provided, the request targets that project. If omitted, the OpenCode server uses its own working directory.
sessionIdYesSession ID
providerIDNoProvider ID

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
dataNo
textYes
isErrorYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.0.0

TDQS

C2.9/5.0
Behavior2/5

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

Annotations already declare destructiveHint=true, readOnlyHint=false, and openWorldHint=true, so the description's 'Run a shell command' is consistent but adds no additional behavioral context such as side effects, permissions, or reversibility. It doesn't go beyond what annotations convey.

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?

A single, concise sentence with no fluff. It is appropriately short and front-loaded, delivering the core action efficiently.

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

Completeness2/5

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

Despite a complete schema and rich annotations, the description omits usage context like when to choose this tool, potential side effects beyond the annotation, or interaction with the session. For a destructive operation, more guidance would be expected, but the minimal description leaves an agent without enough context to decide when to invoke it.

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?

All 6 parameters have descriptions in the schema (100% coverage), so the description doesn't need to explain them. The description adds nothing about parameters, but the baseline for high coverage is 3, so this is appropriate.

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 states a clear verb 'Run' and resource 'shell command through the opencode session', making the tool's purpose evident. However, it does not differentiate from siblings like opencode_command_execute or opencode_run, which also execute commands, so it doesn't fully distinguish itself.

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?

The description provides no guidance on when to use this tool versus alternatives, nor any conditions, prerequisites, or exclusions. An agent would have no clue about selection criteria among the many execution-related siblings.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools