Skip to main content
Glama

respond_approval_request

Approve or reject one exact pending action request with owner validation and stale, duplicate, or expired answer protection.

Instructions

Reserve approve/reject for one exact action, with stale/duplicate answer protection.

Only the authoritative root interaction owner can answer; workers/orchestrators cannot self-approve. interaction_owner="monitor" is refused on this MCP caller channel: the Monitor answers through harflow-ctl, and every MCP decision is recorded as a caller decision. Approval preserves exact original input and never installs permission suggestions or reusable grants. Reservation, local pipe delivery and observed tool outcome are separate states. No ambiguous decision is automatically resent. A request unanswered after 1800 seconds, or at an earlier workflow attempt deadline, is rejected by Harflow (approval_expired) and never approved; a stale or expired answer fails. There is no approve-later path after a denial or expiry. Recovery is always a new resume_task or continue_task execution of the finished task, and what to change follows the denied entry's denial_remedy: allowed_commands covers only Bash approval_required and chained_command parts; a denied or expired Read, Write or Edit needs a resumed run (caller_approvals and caller_write_approvals are inherited) so the agent can raise a fresh request; path_safety and outside_working_directory go through caller approvals, not grants; a deny_rule cannot be lifted by grants. Messages and resume are never decisions.

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": {
      "task_id": "<task_id>",
      "request_id": "<request_id>",
      "action_digest": "<action_digest>",
      "owner_revision": "<owner_revision>",
      "decision": "<decision>"
    },
    "name": "respond_approval_request"
  }
}

Input Schema

NameRequiredDescriptionDefault
task_idYes
decisionYes
request_idYes
action_digestYes
owner_revisionYes
interaction_ownerNocaller

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.0.14

TDQS

A3.8/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and does so: 1800s expiry with approval_expired rejection, stale/expired answers failing, no auto-resend of ambiguous decisions, original input preserved, no permission suggestions or reusable grants installed, and separation of reservation vs. pipe delivery vs. observed outcome. These are non-obvious behaviors an agent could not guess from the schema.

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?

The core rule is front-loaded in the first sentence and each subsequent sentence adds a distinct rule rather than restating. It drifts into fine-grained denial-remedy taxonomy (allowed_commands, path_safety, deny_rule) that feels like remediation documentation rather than call-shaping guidance.

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?

Return values are covered by the output schema and the decision/expiry semantics are well covered, but the arguments an agent must actually supply are undocumented. For a high-stakes decision tool with five required params and zero schema descriptions, that is a meaningful hole.

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?

Schema description coverage is 0% across 6 parameters, so the description must compensate and largely does not: only interaction_owner is explained (default caller, monitor refused). 'Exact action' and 'stale/duplicate answer protection' hint that action_digest and owner_revision are precondition tokens, but decision values, request_id and task_id semantics are left entirely to the schema.

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 opening sentence names a specific action (approve/reject) and the resource (a single exact action within an approval request) and adds scope via 'stale/duplicate answer protection'. It does not name the sibling read tools (get_approval_request, list_approval_requests) as the place to discover what to answer, so the boundary is inferable but not spelled out.

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?

Strong on who may call (authoritative root interaction owner only; workers/orchestrators cannot self-approve; interaction_owner="monitor" refused on this channel) and on dead ends (no approve-later path after denial or expiry). It gives recovery routing to resume_task/continue_task, but never states the precondition of fetching a pending request first.

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