MCP function implementation