Skip to main content
Glama

apply_hitl_confirmations

Apply human answers to procedure-stage and correction-item HITL questions, using fail-closed validation to require authenticated server-side approval.

Instructions

Apply human answers to procedure-stage and correction-item HITL questions with fail-closed validation. approval_provenance.approval_status stays 'unapproved' unless an authenticated approval was recorded server-side for the run.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
run_idNoServer-issued run id from run_tw_corrections_analysis.
answersYes
atomic_itemsYes
procedure_stage_signalYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.5.1
    • addedInput schema / properties / run_id
      Added value: +{
      +  "description": "Server-issued run id from run_tw_corrections_analysis.",
      +  "type": "string"
      +}
  2. First observedv0.4.0

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations provided, the description carries the full burden and largely meets it: it discloses fail-closed validation and the exact approval-status invariant (stays 'unapproved' unless an authenticated approval was recorded server-side). This tells the agent the operation is gated by server-side state and fails safely. Minor gap: no mention of whether applying answers is reversible or what side effects it has.

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 dense, front-loaded sentences. The first states the operation and its validation mode; the second gives the key approval invariant. Every clause carries meaning, with no filler or repetition of schema content.

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 tool with no annotations, no output schema, and only 25% parameter coverage, there are notable gaps: no prerequisites are mentioned (e.g., that run_id comes from run_tw_corrections_analysis, which the schema hint implies but the description doesn't state), no guidance on the shape of the nested arrays/objects, and no description of the return value or exact failure behavior. The approval semantics are covered well, but the surrounding workflow context 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 description coverage is only 25% — only run_id has a description. The description partially compensates by mapping 'answers' to human answers, 'procedure_stage_signal' to procedure-stage HITL questions, and 'atomic_items' to correction-item HITL questions, but it gives no structural or format guidance for these nested objects/arrays. This mapping is helpful but thin given three undocumented, nested required parameters.

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 uses a specific verb ('Apply') with a clear resource ('human answers to procedure-stage and correction-item HITL questions'), and adds the 'fail-closed validation' behavior. This distinguishes it from siblings like build_hitl_confirmation_packet (constructing the HITL packet) and run_tw_corrections_analysis (running the correction analysis).

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies its use — applying human answers to HITL questions — and scopes it to procedure-stage and correction-item questions, but it never explicitly states when to use this tool versus alternatives or when not to use it. No sibling is named as an alternative, so the agent must infer workflow ordering from context.

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