Skip to main content
Glama

resolve_approvals

Destructive

Approve or deny the integration actions a run is paused on (status needs_input with pending_approval_ids). Submit a decision for every pending id at once; the run resumes in the background.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
run_idYesA run id (trun_...).
approvalsYesOne decision per pending approval id — the run stays paused until every one is answered.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYes
objectYes
resultNo
reusedNo
statusYes
chat_idNo
summaryNo
task_idYes
next_stepNo
task_nameNo
created_atYes
started_atNo
completed_atNo
error_messageNo
wait_timed_outNoThe wait ended first. The work is still running: follow it with the tool next_step names.
credits_consumedNo
pending_approval_idsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedOutput schema / properties / next_step
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / wait_timed_out
      Added value: +{
      +  "description": "The wait ended first. The work is still running: follow it with the tool next_step names.",
      +  "type": "boolean"
      +}
  2. Changed1 schema field changed
    • changedOutput schema / properties / status / enum
      Previous value: -[
      -  "pending",
      -  "running",
      -  "completed",
      -  "failed",
      -  "needs_input",
      -  "timed_out",
      -  "unknown"
      -]New value: +[
      +  "pending",
      +  "running",
      +  "completed",
      +  "failed",
      +  "needs_input",
      +  "timed_out",
      +  "unknown",
      +  "skipped"
      +]
  3. Changed1 schema field changed
    • changedOutput schema / properties / status / enum
      Previous value: -[
      -  "pending",
      -  "running",
      -  "completed",
      -  "failed",
      -  "needs_input",
      -  "timed_out"
      -]New value: +[
      +  "pending",
      +  "running",
      +  "completed",
      +  "failed",
      +  "needs_input",
      +  "timed_out",
      +  "unknown"
      +]
  4. Changed1 schema field changed
    • changedOutput schema / properties / status / enum
      Previous value: -[
      -  "pending",
      -  "running",
      -  "completed",
      -  "failed",
      -  "needs_input"
      -]New value: +[
      +  "pending",
      +  "running",
      +  "completed",
      +  "failed",
      +  "needs_input",
      +  "timed_out"
      +]
  5. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare destructive=true, idempotent=false, and openWorld=true, so the safety profile is covered. The description adds real behavioral context beyond them: the all-at-once atomicity requirement and the fact the run resumes in the background rather than returning the completed result.

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 sentences, zero waste. The precondition is front-loaded, the atomicity and async-resume behaviors follow immediately, and nothing is repeated from the schema.

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?

With an output schema present, return values need no explanation, and the description covers the trigger state, the batch requirement, and the background resume. It could still note denial reason semantics or partial-failure behavior, but it is sufficient to invoke the tool correctly.

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%, including the nested approvals array, its items, and the minItems constraint, so the schema carries the parameter meaning. The description only restates that a decision is needed per pending id, adding no format or syntax detail beyond the schema.

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?

Specific verb pair (approve/deny) plus a precise resource (integration actions a run is paused on) and the exact trigger state (status needs_input with pending_approval_ids). It is clearly distinguishable from siblings like get_run, wait_for_run, or cancel_run.

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?

States the precondition for calling (a run paused in needs_input) and the workflow requirement to answer every pending id at once, which is strong context. It does not name alternatives (e.g., wait_for_run for monitoring) or say what happens if a run is not in that state, so it stops short of explicit when-not guidance.

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.

Resources