Skip to main content
Glama

haldir_request_approval

Request human approval for a risky action, returning a request ID to poll or await via webhook until the decision is approved or denied.

Instructions

Request human-in-the-loop approval for a risky action. Returns a request_id; pass that to haldir_get_approval_status, or wait for a webhook, until the status becomes 'approved' or 'denied'.

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": {
      "session_id": "<session_id>",
      "action": "<action>",
      "reason": "<reason>"
    },
    "name": "haldir_request_approval"
  }
}

Input Schema

NameRequiredDescriptionDefault
ttlNoSeconds until the request expires.
actionYes
reasonYes
detailsNo
session_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.3

TDQS

A3.8/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does add genuine value: it discloses that the call is non-blocking (returns a request_id), that terminal states are 'approved'/'denied', and that a webhook alternative exists to polling. However, it says nothing about what happens on TTL expiry, who must approve, or any authorization requirements in the haldir ecosystem.

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 with the primary action front-loaded and the follow-up workflow second; every clause carries information and nothing is repeated.

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 5-parameter tool with a nested object, no output schema, and no annotations, the description covers the return value and lifecycle well but leaves the input contract largely unexplained. An agent would know how to continue after the call but not confidently how to populate session_id, action, reason, and details.

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?

Only the ttl parameter is documented in the schema (20% coverage); session_id, action, reason, and the nested details object have no explanation anywhere. The description does not compensate at all — it never mentions action, reason, or details, so an agent must guess what content belongs in those fields for an approval request to be actionable.

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 names a specific verb and resource ('Request human-in-the-loop approval'), scopes it to 'a risky action', and explicitly distinguishes itself from the sibling haldir_get_approval_status by describing the handoff of request_id.

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 states the triggering condition (risky action) and names the two follow-up paths — polling haldir_get_approval_status or waiting for a webhook — which gives real routing guidance. It stops short of saying when NOT to use it (e.g. low-risk actions) or what prerequisites exist, so it is not a full when/when-not/alternatives statement.

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