Skip to main content
Glama

gateway.list_pending

Lists all pending tool invocations with elapsed time, heartbeat age, and health status so you can monitor long-running operations before canceling them.

Instructions

List all pending tool invocations with health status. Shows elapsed time, heartbeat age, and current state for each request. Use this to monitor long-running operations before deciding to cancel.

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

Input Schema

NameRequiredDescriptionDefault
serverNoFilter to pending requests on a specific server (optional)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv3.0.1
    • addedInput schema / properties / server / anyOf
      Added value: +[
      +  {
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedInput schema / properties / server / type
      Removed value: -"string"
  2. First observedv1.18.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full behavioral burden; it partially discharges this by disclosing the returned fields (elapsed time, heartbeat age, current state), which tells the agent this is a non-destructive read. It omits whether results are paginated, whether the list is truncated, and any auth or rate-limit expectations for a monitoring call an agent may poll.

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 short sentences, front-loaded with the core action and no filler. There is slight redundancy between 'with health status' and the enumerated fields, but it reads cleanly and efficiently.

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?

This is a simple read tool with one optional parameter and no output schema, so the description's enumeration of returned fields is genuinely necessary and present. The remaining gap is default scoping and result-size behavior, which matters for an agent deciding whether a pending-ness check is reliable.

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% and the single optional 'server' filter is documented in the schema itself. The description adds no meaning about the filter, such as what happens when it is omitted (all servers) — so the baseline of 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 opens with a specific verb and resource: 'List all pending tool invocations with health status,' which is concrete and distinct from sibling list-style tools like gateway.tasks_list or gateway.health. It never names a sibling explicitly, but the 'pending invocations' scope is narrow enough that an agent can distinguish it.

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?

'Use this to monitor long-running operations before deciding to cancel' gives a clear situational trigger and implicitly points to gateway.cancel as the follow-up action. It does not state when NOT to use it (e.g., for completed or queued-but-not-started requests), so it stops short of full alternative routing.

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