Skip to main content
Glama

OKX-DEX-SDK MCP SSE Server

by 0xobedient
getChainDataTool.ts•764 B
import { Tool } from "./../../shared/types/tool"; import { z } from "zod"; import { get_chain_data } from "../hooks"; export const getChainDataToolParams = { chainId: z.string(), }; export const getChainDataToolZodParams = z.object({ ...getChainDataToolParams, }); export type GetChainDataToolParamType = z.infer< typeof getChainDataToolZodParams >; export const getChainDataTool: Tool< typeof getChainDataToolParams, { chainId: string }, string > = { name: "OKX_DEX_GET_CHAIN_DATA", description: "Retrieve information on chains supported for single-chain exchanges.", parameters: { ...getChainDataToolParams, }, callback: async ({ chainId }: { chainId: string }): Promise<string> => { return get_chain_data(chainId); }, };

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/0xobedient/okx-mcp'

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