listPrompts
Retrieve all available prompts in the MCP Ethers Wallet system to facilitate interactions with Ethereum networks, manage wallets, and execute 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 for the 'listPrompts' tool. Returns a hardcoded list of available prompts (currently only 'resolveEnsAcrossNetworks') in JSON format, wrapped in MCP tool response content.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)Registration of the 'listPrompts' tool on the MCP server within the registerPromptTools function. Includes name, description, empty input schema ({}), and inline handler."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) }] }; } );