Skip to main content
Glama

btb_derive_approve

Approve a pending derive operation after governance requires human review; submit the proposal_hash to execute the reorganization.

Instructions

Approve a pending derive operation.

After btb_derive_governed() returns with approval_required=True, call this tool with the proposal_hash to execute the reorganization.

This implements the "Threshold Witness" pattern from the Spiral protocols: the human observes the proposal and consciously approves before execution.

Args: proposal_hash: The hash returned by btb_derive_governed() approver_id: Identifier for the approver (logged in audit trail)

Returns: JSON result with execution outcome

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": {
      "proposal_hash": "<proposal_hash>"
    },
    "name": "btb_derive_approve"
  }
}

Input Schema

NameRequiredDescriptionDefault
approver_idNomcp_operator
proposal_hashYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.6/5.0
Behavior4/5

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

No annotations exist, so the description carries the full burden; it does disclose that the call actually executes the reorganization (a real mutation), that approval is a deliberate human gate, and that approver_id is written to an audit trail. It does not cover failure behavior (invalid or expired hash), idempotency, or whether the reorganization is reversible, which are material gaps for an unannotated mutating tool.

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 trigger condition is front-loaded and the docstring-style Args block is easy to scan. The 'Threshold Witness' / 'Spiral protocols' framing is somewhat verbose, and the 'Returns:' line is redundant given an output schema exists, but neither obscures the operational instructions.

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?

For an unannotated mutation tool, the description supplies the sequencing, the parameter provenance, the audit side effect, and the execution semantics, while the output schema covers return values. It stops short of describing failure modes or what 'execution outcome' looks like on partial failure.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must compensate, and it does: proposal_hash is defined by provenance (the hash returned by btb_derive_governed) and approver_id by purpose and side effect (identifier recorded in the audit trail). Both of the two parameters get meaning that the bare schema types do not convey.

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?

States a specific verb and resource ('Approve a pending derive operation') and immediately ties it to the sibling that creates the proposal ('After btb_derive_governed() returns with approval_required=True'). An agent can distinguish this from btb_derive_governed without opening either schema.

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

Usage Guidelines5/5

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

Gives an explicit trigger condition (approval_required=True from btb_derive_governed) and the required input for that call (the proposal_hash). It also names the alternative path by reference, so the agent knows this is the second half of a two-step flow rather than a standalone approve.

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