Skip to main content
Glama

opencode_session_prompt

Destructive

Send a prompt to an existing OpenCode session to continue coding tasks; optionally attach files or add context without triggering an AI response.

Instructions

Send a prompt to an existing OpenCode session.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "sessionId": "<sessionId>",
      "prompt": "<prompt>"
    },
    "name": "opencode_session_prompt"
  }
}

Input Schema

NameRequiredDescriptionDefault
filesNoFile paths to attach
promptYesThe message to send
noReplyNoAdd context without triggering AI response
sessionIdYesSession ID from opencode_session_create

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

C2.8/5.0
Behavior2/5

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

The annotations already declare destructiveHint=true, readOnlyHint=false, openWorldHint=true and non-idempotent, so the description should explain what is actually consumed or mutated — token cost, whether the prompt is persisted to session history, whether it blocks until the AI replies. It says none of that; the only behavioral clue (noReply) lives in the schema rather than here.

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

Conciseness3/5

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

It is a single front-loaded sentence with zero filler, which is good structurally. However, at this brevity the sentence carries essentially no information beyond the tool name, so its conciseness tips into under-specification.

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?

For a destructive, non-idempotent, open-world tool with no output schema, the description should cover whether the call blocks for a reply, that the prompt becomes part of session history, and what the agent gets back. None of this is stated, leaving the agent to infer the interaction model from the schema alone.

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 all four parameters — sessionId, prompt, files, noReply — are already documented in the input schema. The description adds no extra syntax, format, or semantics beyond that, so the baseline 3 applies.

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 specific verb and resource: 'Send a prompt' to 'an existing OpenCode session'. That is clear enough to distinguish it from create/list/abort siblings, but it offers no differentiation from other prompt-sending style tools such as opencode_run or opencode_agent_delegate.

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 only usage signal is the word 'existing', which weakly implies you need a session first (the sessionId schema description points to opencode_session_create). There is no explicit when-to-use, when-not-to-use, or comparison against opencode_run or opencode_agent_delegate, which are the obvious candidates for sending work.

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