search
Find Ethereum Improvement Proposals (EIPs) by entering search terms to locate relevant protocol specifications and standards.
Instructions
Search Ethereum EIPs by query string
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"query": "<query>"
},
"name": "search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |
Implementation Reference
- main.py:25-34 (handler)The handler function for the MCP 'search' tool, registered via @mcp.tool(). It searches the EIP knowledge base for the given query, retrieves the top 5 matching document chunks, and returns a formatted string with separators and content.
@mcp.tool() def search(query: str) -> str: """Search Ethereum EIPs by query string""" # Implementation to be added chunks = knowledge_base.search(query=query, num_documents=5) parts = [] for chunk in chunks: parts.append("-" * 20 + chunk.name + "-" * 20) parts.append(chunk.content) return "\n".join(parts)