Skip to main content
Glama

SwapChan

Build a limit order

build_limit_order
Read-only

Build a gasless CoW Protocol limit order (sell an ERC-20 for at least a target amount, valid until expiry). Returns EIP-712 typed data for the user's wallet to sign, the ERC-20 approve tx for CoW's vault relayer if the allowance is short, the current market amount for reference, and how to submit the signature. Never signs or submits. Result includes display markdown with chan images: show it to the user.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
ownerYesWallet that signs and owns the order
chainIdYesChain id where CoW runs: 1 Ethereum, 8453 Base, 42161 Arbitrum, 137 Polygon, 56 BNB, 43114 Avalanche, 59144 Linea
buyTokenYesToken to receive
buyAmountNoMinimum human amount to receive (the limit). Provide this OR limitPrice.
sellTokenYesERC-20 to sell (not the native token; wrap first)
limitPriceNoPrice in buyToken per 1 sellToken. Provide this OR buyAmount.
sellAmountYesHuman amount to sell, e.g. "100"
expiresInHoursNoDefault 168 (7 days)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.