Skip to main content
Glama

resolve_pending_tool_call

Destructive

Approve (and execute) or reject a parked tool call from list_pending_tool_calls. On approve, the original tool call is actually run and its result stored/returned; on reject, it's just marked rejected — nothing runs.

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": {
      "pending_id": "<pending_id>",
      "approve": "<approve>"
    },
    "name": "resolve_pending_tool_call"
  }
}

Input Schema

NameRequiredDescriptionDefault
approveYestrue = approve and run the parked call, false = reject it
pending_idYesID of the pending
human_requestNoOnly for calls that normally need a human in the app (e.g. publishing in the video library, making a YouTube video public): the human's own words asking for this approval, quoted verbatim. Works only with a person's own API key (not bound to an agent) and an admin role; it is written to the audit log.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / human_request / description
      Previous value: -"Only for calls that normally need a human in the app (e.g. publishing in the video library): the human's own words asking for this approval, quoted verbatim. Works only with a person's own API key (not bound to an agent) and an admin role; it is written to the audit log."New value: +"Only for calls that normally need a human in the app (e.g. publishing in the video library, making a YouTube video public): the human's own words asking for this approval, quoted verbatim. Works only with a person's own API key (not bound to an agent) and an admin role; it is written to the audit log."
  2. Changed2 schema fields changed
    • addedInput schema / properties / approve / description
      Added value: +"true = approve and run the parked call, false = reject it"
    • addedInput schema / properties / pending_id / description
      Added value: +"ID of the pending"
  3. First observed

TDQS

A4.2/5.0
Behavior4/5

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

The annotations already flag this as non-read-only, destructive, and open-world, but the description adds the crucial distinction those hints cannot convey: approve actually executes the parked call and stores/returns its result, while reject merely marks it with nothing running. That is genuine behavioral value beyond structured fields. It stops short of stating irreversibility or whether an approved call can be undone, so a 4 rather than 5.

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?

Two tightly written sentences, front-loaded with the action and followed by the contrasting approve/reject outcomes. Every clause carries information and nothing is wasted.

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 three-parameter resolver with full annotation coverage and no output schema, the description covers the essential execution semantics and the source of pending_id. It could say more about repeat invocation (idempotentHint is false) or what a rejected entry looks like afterward, but nothing critical to calling it correctly is missing.

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 coverage is 100%, with approve, pending_id, and the human_request audit/admin caveats all documented in the schema. The description's approve/reject outcome explanation overlaps what the approve parameter already says. With the schema doing the heavy lifting, the baseline 3 is appropriate.

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?

The description opens with a specific verb pair and resource: 'Approve (and execute) or reject a parked tool call,' and immediately names the sibling tool that produces those calls (list_pending_tool_calls). An agent can distinguish this resolver from the lister without opening either 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?

It establishes the entry condition clearly: this tool acts on a call obtained 'from list_pending_tool_calls.' That effectively routes the agent to the lister first, then here. There is no explicit when-not guidance or mention of what happens if the pending_id is stale or already resolved, which keeps it out of 5 territory.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.