Skip to main content
Glama

confirm_autonomous_swap

Idempotent

Submit an on-chain transaction hash for independent RPC receipt verification and economic reconciliation, confirming or failing a reserved autonomous swap.

Instructions

[Capability: available_with_tier_gate; tier: scout_plus; API: /api/v1/agent/authority; authority: /api/v1/agent/status] Submit on-chain transaction hash for independent RPC receipt verification and economic reconciliation.

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": {
      "reservationId": "<reservationId>",
      "txHash": "<txHash>",
      "agentSessionId": "<agentSessionId>"
    },
    "name": "confirm_autonomous_swap"
  }
}

Input Schema

NameRequiredDescriptionDefault
statusNoOptional client execution status hint
txHashYesOn-chain transaction hash for public RPC receipt verification
grantIdNoGrant ID
intentIdNoIntent ID
errorReasonNoError reason if execution failed or was ambiguous
ownerAddressNoWallet owner EVM address
sessionTokenNo
reservationIdYesActive reservation ID from prepare_autonomous_swap
agentSessionIdYesAuthenticated agent session ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / sessionToken
      Added value: +{
      +  "maxLength": 256,
      +  "minLength": 32,
      +  "type": "string"
      +}
  2. First observedv5.0.0

TDQS

B3.1/5.0
Behavior3/5

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

Annotations already declare readOnly=false, idempotent=true, openWorld=true, destructive=false. The description adds real value beyond that: verification is done independently via public RPC rather than trusting the client's status hint, and the tool is tier-gated to scout_plus. It does not explain what happens on 'ambiguous' status, how failures/retries behave under idempotency, or what reconciliation side-effects occur.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The core sentence is tight and front-loaded with a clear verb, but it is preceded by a bracketed metadata block (capability flag, tier, two API paths) that pushes the actual purpose back and contains routing details irrelevant to invoking the tool.

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 9-parameter, open-world, state-changing confirmation tool with no output schema, the definition covers purpose and access tier but leaves out return behavior (does it report verification outcome?), handling of the status/errorReason hints, and failure semantics. Adequate to call, thin on expected outcomes.

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 89%, so the schema already explains the parameters, including reservationId's link to prepare_autonomous_swap and the status enum. The description adds no parameter-level meaning beyond generic mention of the tx hash, so baseline 3 applies.

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?

States a specific verb and resource — submitting an on-chain transaction hash — plus the purpose (independent RPC receipt verification and economic reconciliation). It does not distinguish itself from near-identical siblings such as confirm_swap, confirm_solana_swap, or confirm_execution, so an agent cannot route on the name alone.

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

Usage Guidelines2/5

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

The description gives no explicit when-to-use or when-not-to-use guidance and names no alternative. The only workflow hint (reservationId comes from prepare_autonomous_swap) lives in the schema, not the description, so the prepare-then-confirm sequence must be inferred.

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

Deploy Server

Other Tools