dex-swap
Swap tokens on the MantraChain DEX by specifying input and output token denominations, amounts, and slippage tolerance using the Model Context Protocol.
Instructions
Execute a token swap on the DEX - must first check two tokens are available in the DEX pools by using dex-get-pools
Input Schema
Name | Required | Description | Default |
---|---|---|---|
memo | No | Optional memo for the transaction | |
networkName | Yes | Name of the network to use | |
slippage | No | Maximum acceptable slippage percentage (e.g., '1' for 1%) | |
tokenInAmount | Yes | Amount of tokens to swap | |
tokenInDenom | Yes | Denomination of the token to swap from | |
tokenOutDenom | Yes | Denomination of the token to swap to |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"memo": {
"description": "Optional memo for the transaction",
"type": "string"
},
"networkName": {
"description": "Name of the network to use",
"type": "string"
},
"slippage": {
"description": "Maximum acceptable slippage percentage (e.g., '1' for 1%)",
"type": "string"
},
"tokenInAmount": {
"description": "Amount of tokens to swap",
"type": "string"
},
"tokenInDenom": {
"description": "Denomination of the token to swap from",
"type": "string"
},
"tokenOutDenom": {
"description": "Denomination of the token to swap to",
"type": "string"
}
},
"required": [
"networkName",
"tokenInDenom",
"tokenInAmount",
"tokenOutDenom"
],
"type": "object"
}