Skip to main content
Glama

wallet_provider_set

Configure the RPC provider URL for Ethereum and EVM-compatible blockchains, overriding the default ETH mainnet or environment variable settings.

Instructions

Set the provider URL. By default, the provider URL is set to the ETH mainnet or the URL set in the PROVIDER_URL environment variable.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
providerURLYesThe provider RPC URL

Implementation Reference

  • The handler function that executes the wallet_provider_set tool. It calls setProvider with the input providerURL and returns a formatted success or error response.
    export const setProviderHandler = async (input: any): Promise<ToolResultSchema> => { try { setProvider(input.providerURL); return createSuccessResponse(`Provider set successfully: Provider URL: ${input.providerURL} `); } catch (error) { return createErrorResponse(`Failed to set provider: ${(error as Error).message}`); } };
  • The input schema and metadata definition for the wallet_provider_set tool.
    { name: "wallet_provider_set", description: "Set the provider URL. By default, the provider URL is set to the ETH mainnet or the URL set in the PROVIDER_URL environment variable.", inputSchema: { type: "object", properties: { providerURL: { type: "string", description: "The provider RPC URL" } }, required: ["providerURL"] } },
  • src/tools.ts:558-558 (registration)
    Registration mapping the tool name 'wallet_provider_set' to its handler function in the central handlers dictionary.
    "wallet_provider_set": setProviderHandler,

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/dcSpark/mcp-cryptowallet-evm'

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