Skip to main content
Glama

insight-oracle

agent_begin_trade

Obtain oracle assessment evidence for a swap/DeFi intent BEFORE trading. Insight runs the oracle safety check and, if the verdict is PASS/CAUTION, returns a machine-readable "execution certification handle": preTradeUid, requestHash, CAIP-19 asset ids, the certified price (destination per source) and maxSlippageBps, plus participant/source-group counts and the pre-trade signing time. Execute the trade with YOUR wallet, then call execution_receipt with this handle + txHash to obtain the signed, verifiable Execution Receipt. If the verdict is DANGER or BLOCK this tool refuses (do not trade). This is oracle assessment evidence, not principal authorization — pair it with execution_receipt.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
assetYesSource asset symbol being sold, e.g. ETH, USDC
actionYes
chainIdYesChain ID where the trade executes, e.g. 1=Ethereum, 42161=Arbitrum, 8453=Base
protocolIdNoOptional lending protocol id (lending actions only)
maxSlippageBpsYesCurrent pre-committed execution tolerance; custom values are rejected
tradeAmountUsdYesTrade size in USD
targetProvidersNoOptional: restrict the check to specific oracle providers
destinationAssetYesDestination asset symbol being bought, e.g. USDC, ETH
sourceGroupCountNoDistinct non-derived operator groups; defaults to participantCount

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/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 behavioral burden and does well: it discloses the refusal condition (DANGER/BLOCK), that it does not execute the trade (you use your own wallet), that the result is a handle/certification rather than principal authorization, and that maxSlippageBps is pre-committed. It omits auth/pricing/rate-limit or latency context, so it falls short of a 5.

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?

Front-loaded with purpose, then sequencing, then refusal semantics, then a scoping disclaimer; every sentence carries information. It is dense and slightly long, with a few parenthetical return-field enumerations that could be trimmed, but nothing is filler.

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 a 9-parameter mutation-adjacent tool with no output schema, the description compensates by enumerating what the handle returns (preTradeUid, requestHash, CAIP-19 ids, certified price, maxSlippageBps, participant counts, signing time) and by specifying the refusal path and next tool. Missing only auth/prerequisite context, which keeps it from a 5.

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 89% so the schema already documents most parameters (asset, destinationAsset, chainId, action enum, tradeAmountUsd). The description adds value beyond the schema by framing maxSlippageBps as a pre-committed tolerance and by explaining that the returned handle contains requestHash and certified price, tying parameters to the certification concept.

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: obtain oracle assessment evidence (an execution certification handle) for a swap/DeFi intent before trading. It distinguishes itself from siblings by naming execution_receipt as the downstream step and by positioning itself as evidence rather than authorization, so an agent can separate it from pre_trade_safety_check and verify_execution_pair.

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?

Explicit when-to-use (before executing a trade), explicit sequencing (call this first, execute with your own wallet, then call execution_receipt with the handle plus txHash), and explicit failure handling (refuses on DANGER/BLOCK, do not trade). This is a full lifecycle instruction rather than a vague hint.

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.