Skip to main content
Glama
buildwithgrove

Grove's MCP Server for Pocket Network

get_supported_methods

Retrieve all available RPC methods for a specific blockchain service, enabling developers to understand supported operations for network interactions.

Instructions

Get all supported RPC methods for a specific blockchain service

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
blockchainYesBlockchain name
networkNoNetwork type (defaults to mainnet)

Implementation Reference

  • Handler implementation for the 'get_supported_methods' tool. It retrieves the blockchain service by name and network, then fetches and returns the list of supported RPC methods using the BlockchainRPCService.
    case 'get_supported_methods': {
      const blockchain = args?.blockchain as string;
      const network = (args?.network as 'mainnet' | 'testnet') || 'mainnet';
    
      const service = blockchainService.getServiceByBlockchain(blockchain, network);
    
      if (!service) {
        return {
          content: [
            {
              type: 'text',
              text: `Blockchain service not found: ${blockchain} (${network})`,
            },
          ],
          isError: true,
        };
      }
    
      const methods = blockchainService.getServiceMethods(service.id);
    
      return {
        content: [
          {
            type: 'text',
            text: JSON.stringify(methods, null, 2),
          },
        ],
      };
    }
  • Tool registration definition including name, description, and input schema for 'get_supported_methods'. Returned by registerBlockchainHandlers for inclusion in the MCP server's tool list.
    {
      name: 'get_supported_methods',
      description: 'Get all supported RPC methods for a specific blockchain service',
      inputSchema: {
        type: 'object',
        properties: {
          blockchain: {
            type: 'string',
            description: 'Blockchain name',
          },
          network: {
            type: 'string',
            enum: ['mainnet', 'testnet'],
            description: 'Network type (defaults to mainnet)',
          },
        },
        required: ['blockchain'],
      },
    },
  • src/index.ts:88-101 (registration)
    Main tool registration in src/index.ts where registerBlockchainHandlers is called to include 'get_supported_methods' and other blockchain tools in the server's tool list.
    const tools: Tool[] = [
      ...registerBlockchainHandlers(server, blockchainService),
      ...registerDomainHandlers(server, domainResolver),
      ...registerTransactionHandlers(server, advancedBlockchain),
      ...registerTokenHandlers(server, advancedBlockchain),
      ...registerMultichainHandlers(server, advancedBlockchain),
      ...registerContractHandlers(server, advancedBlockchain),
      ...registerUtilityHandlers(server, advancedBlockchain),
      ...registerEndpointHandlers(server, endpointManager),
      ...registerSolanaHandlers(server, solanaService),
      ...registerCosmosHandlers(server, cosmosService),
      ...registerSuiHandlers(server, suiService),
      ...registerDocsHandlers(server, docsManager),
    ];

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/buildwithgrove/mcp-pocket'

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