Skip to main content
Glama

bnbchain-mcp

Official
by bnb-chain
prompts.ts879 B
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js" import { z } from "zod" import { networkSchema } from "../common/types.js" export function registerTransactionPrompts(server: McpServer) { // Transaction analysis prompt server.prompt( "analyze_transaction", "Analyze a specific transaction", { txHash: z.string().describe("Transaction hash to analyze"), network: networkSchema }, ({ txHash, network = "bsc" }) => ({ messages: [ { role: "user", content: { type: "text", text: `Please analyze transaction ${txHash} on the ${network} network and provide a detailed explanation of what this transaction does, who the parties involved are, the amount transferred (if applicable), gas used, and any other relevant information.` } } ] }) ) }

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/bnb-chain/bnbchain-mcp'

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