Skip to main content
Glama

begin_trade_evidence

Open the verifiable execution loop: certify a swap/DeFi intent before the agent executes. Use it when a principal needs a signed pre-trade handle to bind an execution receipt later. Do not use it as trade authorization and do not call it after the trade. Returns preTradeUid, destinationPreTradeUid, requestHash, CAIP-19 asset ids, certified cross-rate, the 50 bps band, verdicts and the signed pre-trade attestations.

Input Schema

NameRequiredDescriptionDefault
assetYesSource asset sold
actionYes
chain_idYesExecution chain id
providersNo
amount_usdYes
protocol_idNo
decision_inputYesRequired quote evidence: {source, destination, routeQuotePrice, routeQuoteObservedAt} (old camelCase shape)
max_slippage_bpsYesPre-committed tolerance; fixed at 50
destination_assetYesDestination asset bought
source_group_countNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does disclose meaningful behavior: it produces signed attestations, issues verdicts, and constrains tolerance to a fixed 50 bps band. It does not disclose authorization requirements, whether the handle is single-use or idempotent, whether state persists on the server, or failure modes, which matter for a signing/certification call.

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?

Three sentences, front-loaded with the core action, then usage constraints, then return payload. The return-value enumeration is dense but every item is load-bearing given there is no output schema, and no sentence is redundant.

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?

Given 10 params, a nested object, no annotations, and no output schema, the description compensates well by enumerating the returned identifiers, hashes, asset ids, rate, band, verdicts, and attestations. The remaining gap is operational: no explanation of the action enum semantics, the optional provider/protocol inputs, or how verdicts should be interpreted.

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?

It adds real meaning for a few inputs: asset fields are returned as CAIP-19 ids and max_slippage_bps is described as a pre-committed tolerance fixed at 50, beyond the schema's const. But at 50% schema coverage with 10 params, it leaves the action enum, amount_usd, providers, protocol_id, source_group_count, and the nested decision_input quote shape essentially undocumented.

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 action and resource: certify a swap/DeFi intent and open a verifiable pre-trade evidence handle. It also states what the tool is NOT ("not trade authorization") and positions it temporally before execution, which separates it from prepare_swap and issue_execution_receipt in the sibling set.

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 gives explicit trigger conditions ("when a principal needs a signed pre-trade handle to bind an execution receipt later") and explicit exclusions ("do not use it as trade authorization and do not call it after the trade"). It stops short of naming a concrete alternative sibling such as check_trade_safety for safety checks or issue_execution_receipt for the post-trade step, leaving that mapping implicit.

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