Skip to main content
Glama

list_pending

List live Claude Code session items awaiting permission requests, questions, or notifications, with request IDs for answering; local entries require on-machine handling.

Instructions

List what live sessions are waiting on, from the Claude Code hooks: permission requests, questions, and notifications, each with a requestId. An entry marked local has no hook waiting and can only be answered on the machine; the others take answer_permission or answer_question. Empty when the hooks are not installed.

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": "list_pending"
  }
}

Input Schema

NameRequiredDescriptionDefault
sessionIdNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations, the description carries the burden and does disclose key behavior: empty result when hooks are not installed, a requestId per entry, and the meaning of the 'local' marker. It omits return ordering, whether it blocks or polls, and pagination, so it is good but not complete.

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?

Three front-loaded sentences with dense, non-redundant content; the item-type enumeration and the local/answerable distinction both earn their place. The first sentence is slightly run-on but no wording is wasted.

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?

There is no output schema, and the description only partially describes returns (a requestId, and a local marker), leaving the shape of each entry and the meaning of sessionId unexplained. Adequate for a read-only listing tool, but an agent still has gaps before calling it correctly.

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?

The single parameter sessionId has 0% schema description coverage and is never mentioned in the description, so an agent cannot tell whether it scopes the listing to one session or is optional filtering. The description does not compensate for the schema gap at all.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb (List) and resource (what live sessions are waiting on), then enumerates the item types: permission requests, questions, notifications. The scope is clearly pending-interaction items rather than sessions themselves, which distinguishes it from list_sessions without needing the sibling's schema.

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

Usage Guidelines4/5

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

Gives concrete routing guidance: entries marked local must be answered on the machine, while the others take answer_permission or answer_question. It also states the empty case (hooks not installed). It does not explicitly contrast with alternatives like get_session or wait_session, so it stops short of full alternative coverage.

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