Skip to main content
Glama
chainfetch

ChainFETCH MCP Server

Official
by chainfetch

search_smart_contracts_llm

Search Ethereum smart contracts using natural language queries. AI interprets your questions and matches them against 150+ contract parameters for precise results.

Instructions

LLM-powered smart contract search using AI to select from 150+ parameters

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYesNatural language query for smart contract search

Implementation Reference

  • Handler for 'search_smart_contracts_llm' tool: proxies the call to ChainFETCH API endpoint '/api/v1/ethereum/smart-contracts/llm_search' using makeRequest method with GET request and provided arguments.
    case 'search_smart_contracts_llm':
      return await this.makeRequest('/api/v1/ethereum/smart-contracts/llm_search', 'GET', args, null, token);
  • Input schema definition for the tool: requires a 'query' string parameter.
    inputSchema: {
      type: 'object',
      properties: {
        query: {
          type: 'string',
          description: 'Natural language query for smart contract search',
        },
      },
      required: ['query'],
    },
  • index.js:566-579 (registration)
    Registration of the tool in the tools list provided to MCP server via setRequestHandler for ListToolsRequestSchema.
    {
      name: 'search_smart_contracts_llm',
      description: 'LLM-powered smart contract search using AI to select from 150+ parameters',
      inputSchema: {
        type: 'object',
        properties: {
          query: {
            type: 'string',
            description: 'Natural language query for smart contract search',
          },
        },
        required: ['query'],
      },
    },

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/chainfetch/chainfetch-mcp-server'

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