Skip to main content
Glama
OpenCode V2 MCP Bridge
by ddarkwing

Get OpenCode session status

oc_status

Retrieve a session's status, agent, model, cost, and latest assistant message, optionally waiting until the session becomes idle.

Instructions

Return status, agent, model, cost and the latest assistant message for a 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>"
    },
    "name": "oc_status"
  }
}

Input Schema

NameRequiredDescriptionDefault
sessionIDYes
waitSecondsNoOptionally block up to this many seconds for the session to become idle

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It usefully discloses the return payload (including cost and the latest assistant message), which is real behavioral information, but it never states that the call can block for up to 600 seconds via waitSeconds, nor whether it is a pure read with no side effects.

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

Conciseness4/5

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

One tightly written sentence with the payload enumerated up front and no filler. It is efficient, though the single flat list makes the blocking behavior invisible rather than front-loading it.

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?

With no output schema available, the description correctly compensates by listing the returned fields. However, for a two-parameter tool with a long-blocking option and no annotations, the missing blocking semantics and session-identifier meaning leave an agent without enough to invoke it confidently in polling scenarios.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 50%: waitSeconds is well documented in the schema, but sessionID is undocumented there. The description says only 'for a session' and adds no meaning for either parameter, omitting any mention of the blocking/polling behavior that is the tool's most consequential parameter.

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?

States a concrete verb ('Return') and enumerates the exact payload: status, agent, model, cost, and latest assistant message, scoped to a session. The purpose is unmistakable and clearly distinct from siblings like oc_cancel or oc_reply, though it never names those alternatives explicitly.

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?

There is no when-to-use guidance: nothing says when to poll this versus calling oc_sessions or oc_task, and nothing explains when the blocking mode is appropriate. The only usage signal is implicit from the word 'Return'.

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