Skip to main content
Glama
Claude Code × OpenCode

Claude Code × OpenCode

by AXLdev123

Pending requests

oc_pending

Lists permission requests and questions (forms) blocking an OpenCode session, or all pending items on the server when no session ID is provided.

Instructions

List the permission requests and questions (forms) blocking an OpenCode session, or all of them on the server if no session is given.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "oc_pending"
  }
}

Input Schema

NameRequiredDescriptionDefault
session_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

A3.7/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 burden. "List" plus "blocking" conveys a safe read that surfaces items halting progress, and the no-session fallback to server-wide scope is disclosed, but nothing covers permissions, pagination, or the shape of returned items.

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?

One sentence with the resource and the scoping rule front-loaded and no redundant wording. Every clause adds information.

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

Completeness4/5

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

For a one-optional-parameter read tool with no output schema, the description covers purpose, resource type, and scoping adequately. Minor gaps remain around the returned item structure and next steps, but nothing essential to invoking it correctly is missing.

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

Parameters4/5

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

Schema coverage is 0% for the single optional session_id, and the description compensates well by explaining exactly what supplying or omitting it means (per-session versus all on the server). That is meaningful semantics beyond the bare string property.

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 specific verb ("List") and specific resources ("permission requests and questions (forms)"), plus the scope distinction between a single session and the whole server. It lacks an explicit contrast with a sibling such as oc_status or oc_wait, so it stops short of the top score.

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 phrase "blocking an OpenCode session" implies the use case: call this when work appears stalled waiting on approval or a form. But it never says when not to use it or points to oc_answer as the follow-up action for resolving the listed items, so the guidance stays implicit.

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