Skip to main content
Glama
Claude Code × OpenCode

Claude Code × OpenCode

by AXLdev123

Answer a permission or a question

oc_answer

Unblock a waiting session by granting or denying permission requests or answering forms, enabling delegated coding work to continue.

Instructions

Unblock a session: grant/deny a permission (request_id + decision) or answer a form (form_id + answer).

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": {
      "session_id": "<session_id>"
    },
    "name": "oc_answer"
  }
}

Input Schema

NameRequiredDescriptionDefault
answerNoForm answers: { fieldId: value }.
cancelNoWith form_id: cancel the form.
form_idNo
messageNoMessage attached to the decision.
decisionNo
request_idNo
session_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

B3.4/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It does convey the core effect (unblocking a blocked session) and that there are two resolution paths, but it omits what the decision values mean in practice (whether "always" persists a grant), whether resolution is reversible, and what the caller gets back. These are meaningful gaps for a state-mutating tool with zero annotation coverage.

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?

A single front-loaded sentence with the effect first and the mode-specific parameter combinations after. The parentheticals are dense but every clause carries useful routing information; nothing is redundant.

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?

Given 7 parameters, a nested answer object, no annotations, and no output schema, the description covers the happy-path modes but leaves the cancel path, message attachment semantics, and the return behavior unexplained. It is adequate to attempt a call in the common case, not complete for all supported paths.

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?

With 43% schema coverage across 7 parameters, the description compensates partially by explicitly pairing request_id+decision and form_id+answer, which is genuinely useful mode-selection information. But the required session_id, the message parameter, and the cancel flag are never mentioned, leaving three parameters dependent on the bare 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?

Names a concrete effect ("Unblock a session") and enumerates the two distinct operations it performs: granting/denying a permission and answering a form. This separates it from siblings like oc_pending or oc_wait, though it does not name them explicitly.

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

Usage Guidelines3/5

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

The framing "Unblock a session" implies this is the tool to call when a session is stalled on a permission prompt or form, and the parameter pairings hint at which mode to pick. However, there is no explicit when-to-use vs. alternative guidance (e.g., check oc_pending first) and no statement of what happens if nothing is pending.

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