Improving api for structured metadata model