Skip to main content
Glama

Approve & Execute Pending Action

task_approve_action

Approve a single-use pending approval by ID and execute only that authorized action, with optional post-action verification checks.

Instructions

Approve a specific pending approval_id (single-use) and execute only that approved action with optional verification.

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": {
      "approval_id": "<approval_id>"
    },
    "name": "task_approve_action"
  }
}

Input Schema

NameRequiredDescriptionDefault
noteNoOptional approval note
executeNowNoExecute the approved action immediately (default: true)
approval_idYesApproval ID returned by task_propose_action
modifiedArgsNoOptional modified arguments for this single action
verificationNoOptional post-action verification checks

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.8.1

TDQS

A4.1/5.0
Behavior4/5

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

Beyond the annotations, it discloses the genuinely important trait that the approval is single-use and that execution is scoped strictly to the approved action — the agent knows the token is consumed and cannot be reused. It leaves gaps on failure behavior (what happens if execution or verification fails, and whether the approval survives an executeNow=false call). Behavior does not contradict destructiveHint=false, since the tool gates rather than initiates actions.

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?

A single front-loaded sentence with zero filler; the single-use constraint and the scope restriction appear before the optional qualifier. Nothing restates the name or title.

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?

For a five-parameter tool with a nested verification object and no output schema, the description should say what comes back (verification pass/fail?) and what a failed verification does to the approval. Those are the material omissions; the execution and approval token side is well covered.

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%, so the schema already documents approval_id, executeNow, modifiedArgs, note, and the nested verification object. The description reinforces approval_id's single-use nature and flags verification as optional, but adds no meaning for executeNow=false, modifiedArgs, or the individual check semantics. Baseline 3 is appropriate where the schema carries the load.

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?

Pairs a specific verb (approve) with a specific resource (a pending approval_id) and states the scope of the write: it executes only that approved action, nothing else. The approve/reject axis is obvious against the sibling task_reject_action, and 'single-use' pins down the lifecycle semantics an agent needs to distinguish it from task_propose_action or the browser_* action tools.

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?

The condition for use is clear: you must hold a pending approval_id, and the schema points back to task_propose_action as its source. It does not explicitly state exclusions (e.g., what to do with an expired or already-consumed approval, or when to prefer task_reject_action), so it stops short of full when/when-not guidance.

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