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
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/promptTools.ts:31-62 (handler)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) }] }; }
- src/tools/promptTools.ts:28-63 (registration)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) }] }; } );
- src/tools/index.ts:28-28 (registration)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);