Skip to main content
Glama

listPrompts

Retrieve all available prompts from the MCP Ethers Wallet server to access Ethereum network interactions, wallet management, blockchain queries, and smart contract operations.

Instructions

List all available prompts in the system

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Handler function that executes the listPrompts tool logic, returning a hardcoded list of available prompts in JSON format.
    async () => { return { content: [{ type: "text", text: JSON.stringify({ prompts: [ { name: "resolveEnsAcrossNetworks", description: "A prompt that guides resolving ENS names on Ethereum mainnet and performing operations with the resolved address on other networks.", arguments: [ { name: "ensName", description: "The ENS name to resolve (e.g., 'vitalik.eth')", required: true }, { name: "targetNetwork", description: "The target network to perform operations on (e.g., 'MEGA Testnet', 'Optimism')", required: true }, { name: "operation", description: "The operation to perform: 'balance' for ETH balance, 'txCount' for transaction count, 'code' for contract code", required: true } ] } ] }, null, 2) }] }; }
  • Registers the listPrompts tool with the MCP server, specifying name, description, empty input schema, and handler function.
    "listPrompts", "List all available prompts in the system", {}, async () => { return { content: [{ type: "text", text: JSON.stringify({ prompts: [ { name: "resolveEnsAcrossNetworks", description: "A prompt that guides resolving ENS names on Ethereum mainnet and performing operations with the resolved address on other networks.", arguments: [ { name: "ensName", description: "The ENS name to resolve (e.g., 'vitalik.eth')", required: true }, { name: "targetNetwork", description: "The target network to perform operations on (e.g., 'MEGA Testnet', 'Optimism')", required: true }, { name: "operation", description: "The operation to perform: 'balance' for ETH balance, 'txCount' for transaction count, 'code' for contract code", required: true } ] } ] }, null, 2) }] }; } );
  • Calls registerPromptTools within the registerAllTools function to include prompt tools in the overall toolset.
    registerPromptTools(server);
  • src/mcpServer.ts:51-51 (registration)
    Top-level call to registerAllTools during MCP server initialization, which indirectly registers the listPrompts tool.
    registerAllTools(server, ethersService);

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/crazyrabbitLTC/mcp-ethers-server'

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