Skip to main content
Glama

ava_approve_execute

Human-in-the-loop approve: the one call that actually settles a plan from ava_copilot_turn. It is gated by the bound mandate's status and constraints and by server-side policy limits, and it CAN REFUSE (e.g. mandate paused/cancelled, a policy violation, a stale preview hash); a refusal means no funds moved and no success receipt was written, only a refusal record. Testnet mode settles against simulated balances and returns a receipt + before/after balances, never a real chain. Mainnet mode signs with the caller's own Turnkey wallet and submits for real where a venue is live, and fails closed everywhere else, so it never claims a fill it cannot show. Call ava_list_venues for which routes are live rather than assuming; that tool reads the same registry this one enforces, so it cannot drift from what will actually execute. NEVER call without explicit user confirmation of the previewed quote.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modeNoDefault testnet. Live is fail-closed without a submit path.
portalYesPortal slug matching the pending plan (e.g. sui)
userIdYesSame userId used on ava_copilot_turn / portfolio
executionIdYesexecutionId from actions[].type === approve_execute on the prior copilot turn
previewHashNopreviewHash from ava_preview_tx. Binds the signature to the artifact the human reviewed; a stale hash fails before signing.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/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 it delivers. It discloses refusal behavior (no funds moved, only a refusal record), testnet vs. mainnet semantics (simulated vs. real signing, fail-closed), and the constraint that it 'never claims a fill it cannot show.' These are behaviors the agent needs to reason about safety and outcomes.

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 description is dense and front-loaded with the core purpose, then flows into gating constraints, mode differences, and a critical safety directive. Though long, each sentence carries distinct information (refusal, fail-closed, venue registry, user confirmation). No filler; it reads as a structured warning sheet for a high-stakes action.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a tool with no output schema, the description covers what to expect on success and failure (receipt vs. refusal record), how to handle modes, and which sibling to consult. It also flags the prerequisite (user confirmation) and the risk of stale preview hashes. This is complete for an approval endpoint that must be invoked correctly to avoid financial consequences.

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

Parameters4/5

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

Schema coverage is 100%, so the schema documents each parameter. The description adds flow-level meaning: mode's enum is explained ('Default testnet. Live is fail-closed without a submit path'), executionId is tied to the prior turn, and previewHash is described as binding the signature to the reviewed artifact. This enriches the agent's understanding beyond field-level descriptions.

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 immediately states a specific verb+resource: 'the one call that actually settles a plan from ava_copilot_turn.' This distinct purpose separates it clearly from siblings like ava_preview_tx (preview) and ava_lend_execute (a different execution path). The phrase 'the one call' reinforces its unique role in the approval flow.

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?

The description explicitly routes the agent: 'Call ava_list_venues for which routes are live rather than assuming' and warns 'NEVER call without explicit user confirmation of the previewed quote.' It also explains when a call might refuse, setting expectations for alternative outcomes. This leaves no ambiguity about when this tool is appropriate.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources