""" Echo Tool - Simple echo for testing. """ from tools.base import BaseTool from typing import Any, Dict class EchoTool(BaseTool): """Simple echo tool for testing MCP server.""" @property def name(self) -> str: return "echo" @property def description(self) -> str: return "Echo back the input text. Useful for testing the MCP server." def get_schema(self) -> Dict[str, Any]: """Get tool schema.""" return { "name": self.name, "description": self.description, "inputSchema": { "type": "object", "properties": { "text": { "type": "string", "description": "Text to echo back" } }, "required": ["text"] } } def execute(self, arguments: Dict[str, Any]) -> str: """Execute echo tool.""" text = arguments.get("text", "") if not text: raise ValueError("Missing required argument: text") return f"Echo: {text}"