The Canonical Schema
Malcolm intercepts the unstructured context from an LLM and requires a strict validation against our versioned schemas. Below are examples of how our protocol structures data for different classes of business before routing it to capacity providers.
The schemas below are indicative snippets, not the full schema. For the full schema, contact contact@trymalcolm.com.
Home & Contents
Request
{
"schema": "malcolm/v1",
"class_of_business": "home_contents",
"payload": {
"property_type": "semi_detached",
"postcode": "SW1A 1AA",
"buildings_cover": true,
"contents_value": 50000,
"cover_limit": 500000
}
}
Response
{
"status": "success",
"pricing": {
"monthly": 14.20,
"annual": 155.00
},
"coverage_confirmed": {
"accidental_damage": 30000
},
"compliance_flags": {
"pii_stripped": true,
"hallucination_check": "passed"
}
}
Travel
Request
{
"schema": "malcolm/v1",
"class_of_business": "travel",
"payload": {
"destination_zone": "europe",
"trip_type": "single_trip",
"travellers": 2,
"ages": [28, 30],
"winter_sports": false
}
}
Life
Request
{
"schema": "malcolm/v1",
"class_of_business": "life",
"payload": {
"cover_type": "level_term",
"cover_amount": 250000,
"term_years": 25,
"applicant_age": 35,
"smoker_status": false
}
}