Skip to main content
Glama

AegisQuant MCP

Build Verified Swap

build_verified_swap

Builds strictly unsigned swap calldata (KyberSwap/CoW Protocol) bounded by MEV-safe slippage and a SHA-256 verification envelope for local firewall validation.

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": {
      "chain": "<chain>",
      "token_in": "<token_in>",
      "token_out": "<token_out>",
      "amount_in": "<amount_in>",
      "amount_in_usd": "<amount_in_usd>",
      "sender_address": "<sender_address>"
    },
    "name": "build_verified_swap"
  }
}

Input Schema

NameRequiredDescriptionDefault
chainYesTarget blockchain network
token_inYesInput token address or mint
amount_inYesInput amount in base units (wei / lamports)
token_outYesOutput token address or mint
amount_in_usdYesApproximate input trade value in USD
execution_modeNoWhether to prioritize on-chain EVM calldata or CoW EIP-712 order intentauto
sender_addressYesUser wallet address (zero custody)
preferred_venueNoPreferred execution venueAUTO
max_slippage_bpsNoSlippage tolerance ceiling in bps
recipient_addressNoRecipient address (defaults to sender)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/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 load and does meaningful work: 'strictly unsigned' tells the agent no signing or custody occurs, and the MEV-safe slippage plus SHA-256 envelope hint at the safety posture of the output. It still omits auth/permission requirements, rate limits, and whether any network call or quote is performed at build time.

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?

A single front-loaded sentence with the verb and resource first, followed by qualifiers; nothing is redundant. The density of jargon ('SHA-256 verification envelope') makes it slightly harder to parse on first read but every clause conveys distinct information.

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 10-parameter, six-required tool with no annotations and no output schema, the description leaves notable gaps: it never describes the return payload (calldata, verification hash, selected venue, quote details) despite no output schema existing to cover it. It also says nothing about choosing between onchain_calldata and cow_intent or about when the mandatory amount_in_usd matters.

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 coverage is 100%, so all ten parameters including execution_mode, preferred_venue, and max_slippage_bps are already documented in the schema, making 3 the baseline. The description only lightly echoes this via 'KyberSwap/CoW Protocol' and 'MEV-safe slippage' and adds no new meaning such as how amount_in_usd is used for risk checks or how auto mode resolves.

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 ('Builds ... swap calldata') and adds differentiating qualifiers: strictly unsigned, two named venues (KyberSwap/CoW Protocol), MEV-safe slippage, and a SHA-256 verification envelope. It is clearly separable from siblings like audit_execution_shortfall or scan_alpha_safety, though it never explicitly contrasts itself with compute_optimal_execution, the closest neighbor.

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

Usage Guidelines3/5

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

Usage is implied by 'for local firewall validation' and the unsigned-output framing, which signals this is a preparation step rather than an execution step. There is no explicit when-to-use statement, no when-not guidance, and no named alternative for route optimization or actual broadcasting.

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.