Skip to main content
Glama

MCPilot

by Xiawpohr

switch-chain

Securely switch the target blockchain chain by specifying chain ID and parameters, enabling MetaMask integration for AI-driven blockchain interactions without exposing private keys.

Instructions

Switch the target chain

Input Schema

NameRequiredDescriptionDefault
addEthereumChainParameterNo
chainIdYes

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "addEthereumChainParameter": { "additionalProperties": false, "properties": { "blockExplorerUrls": { "items": { "type": "string" }, "type": "array" }, "chainName": { "type": "string" }, "iconUrls": { "items": { "type": "string" }, "type": "array" }, "nativeCurrency": { "additionalProperties": false, "properties": { "decimals": { "type": "number" }, "name": { "type": "string" }, "symbol": { "type": "string" } }, "required": [ "name", "symbol", "decimals" ], "type": "object" }, "rpcUrls": { "items": { "type": "string" }, "type": "array" } }, "required": [ "chainName", "rpcUrls" ], "type": "object" }, "chainId": { "type": "number" } }, "required": [ "chainId" ], "type": "object" }

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/Xiawpohr/mcpilot'

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