Skip to main content
Glama
index.ts1.19 kB
import { chainParamsSchema, getQuoteParamsSchema, getSwapParamsSchema, hashParamsSchema } from "../types.js"; import * as chainExecute from './chain.js'; import * as swapExecute from './swap.js'; export const tools = { chainList: { name: "CHAIN_LIST", description: "Get chain list", execute: chainExecute.chainList }, tokenList: { name: "TOKEN_LIST", description: "Get token list", parameters: chainParamsSchema, execute: chainExecute.tokenList }, dexList: { name: "DEX_LIST", description: "Get dex list", parameters: chainParamsSchema, execute: chainExecute.dexList }, gasPrice: { name: "GAS_PRICE", description: "Get gas price", parameters: chainParamsSchema, execute: chainExecute.gasPrice }, getTransaction: { name: "GET_TRANSACTION", description: "Get Transaction", parameters: hashParamsSchema, execute: chainExecute.getTransaction }, quote: { name: "QUOTE", description: "Quote the price of a specific trading pair", parameters: getQuoteParamsSchema, execute: swapExecute.quote }, swap: { name: "SWAP", description: "Building swap transaction", parameters: getSwapParamsSchema, execute: swapExecute.swap }, };

Latest Blog Posts

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/openocean-finance/openocean-mcp'

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