Skip to main content
Glama

Tapp Exchange MCP Server

by tamago-labs

tapp_swap_amm

Use this tool to execute token swaps on Automated Market Maker (AMM) pools on the Aptos blockchain. Specify pool address, swap direction, and token amounts to trade assets efficiently.

Instructions

Execute a swap on an AMM pool

Input Schema

NameRequiredDescriptionDefault
a2bYesDirection of the swap; true for token A to B, false for B to A
amount0YesAmount of token A
amount1YesAmount of token B
fixedAmountInNoWhether the input amount is fixed (defaults to true)
poolIdYesThe address of the pool in which the swap is performed

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "a2b": { "description": "Direction of the swap; true for token A to B, false for B to A", "type": "boolean" }, "amount0": { "description": "Amount of token A", "type": "number" }, "amount1": { "description": "Amount of token B", "type": "number" }, "fixedAmountIn": { "description": "Whether the input amount is fixed (defaults to true)", "type": "boolean" }, "poolId": { "description": "The address of the pool in which the swap is performed", "type": "string" } }, "required": [ "poolId", "a2b", "amount0", "amount1" ], "type": "object" }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/tamago-labs/tapp-exchange-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server