Skip to main content
Glama

x402, crypto, defi, base, usdc, evm, security, sec-edgar, news, web-search

Net-profit cross-chain arb & tranche execution planner

workflow_cross_arb
Read-onlyIdempotent

[$0.04] Trigger When: sizing cross-chain DEX arbitrage after all fees. Workflow Outcome: verifies dual-chain RPCs, deducts gas, bridge, and slippage costs, and outputs a tranche plan. Do not use for DeFi yield pool ranking (use defi_yield_pools) or single-token snapshots (use token_market_snapshot). source_chain and destination_chain must differ, and profitable_after_costs turns false whenever gas+bridge+slippage exceed spread. Live DEX/RPC, read-only non-custodial plan; requires x402 USDC or Stripe MPP (10 free lifetime calls via /api/free/*) at 30-60 req/min.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "workflow_cross_arb"
  }
}

Input Schema

NameRequiredDescriptionDefault
assetNoToken symbol to arbitrageUSDC
amount_usdNoTrade notional in USD (50-5000000)
source_chainNoSource EVM chain (base, ethereum, arbitrum, optimism)base
max_slippage_bpsNoMaximum slippage tolerance in basis points (5-500)
destination_chainNoDestination EVM chain (must differ from source_chain)arbitrum

Output Schema

NameRequiredDescriptionDefault
assetNo
cachedNo
venuesNo
degradedNo
endpointNo
economicsNo
rpc_healthNo
spread_bpsNo
source_chainNo
non_custodialNo
execution_planNo
schema_versionNo
destination_chainNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the annotations (readOnlyHint, idempotentHint, openWorldHint, destructiveHint=false), it discloses that the tool hits live DEX/RPCs, produces a non-custodial plan rather than executing, requires x402 USDC or Stripe MPP payment with 10 free lifetime calls, is rate-limited to 30-60 req/min, and sets profitable_after_costs=false when costs exceed spread. That is materially more than the structured fields provide, and it is consistent with the read-only annotation.

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?

It is short, front-loaded with the trigger and outcome labels, and every sentence carries a distinct fact (cost, workflow, exclusions, constraints, auth/pricing). It loses a point only because the final sentence packs pricing, free-tier, and rate limits into one long run-on clause.

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 five-parameter, open-world, paid execution planner with an output schema, the description covers everything an agent needs before calling: cost, trigger, constraints, side conditions, auth, and rate limits. Return-value detail is correctly omitted since the output schema already defines the tranche plan.

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 100%, so each parameter is already documented in the input schema, including the 'must differ from source_chain' constraint. The description's only added semantics is the profitable_after_costs outcome flag, which is a result behavior rather than a parameter meaning, so this is the baseline 3 case where the schema does the heavy lifting.

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 verb and resource ('sizing cross-chain DEX arbitrage after all fees') and states the deliverable explicitly ('outputs a tranche plan'), so the agent knows exactly what it gets back. It also names the two sibling tools it is not (defi_yield_pools, token_market_snapshot), which removes ambiguity before any schema is opened.

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?

It gives an explicit trigger condition ('Trigger When: sizing cross-chain DEX arbitrage after all fees') plus two hard exclusions with named alternatives, which is the full when/when-not/alternative set. Nothing about tool selection is left to inference.

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