{"inputSchema":{"type":"object","properties":{"weights":{"type":"array","items":{"type":"integer","minimum":1,"maximum":1000000000},"maxItems":40,"minItems":2},"seats":{"type":"integer","minimum":1,"maximum":1000},"allocation":{"type":"array","items":{"type":"integer"},"maxItems":40,"minItems":0}},"required":["weights","seats","allocation"],"additionalProperties":false},"outputSchema":{"type":"object","required":["measured_at","source","data","limitations"],"properties":{"measured_at":{"type":"string"},"source":{"type":"object","required":["reference","retrieved_at"],"properties":{"reference":{"type":"string"},"retrieved_at":{"type":"string"}}},"data":{"type":"object","properties":{"gap_points":{"type":"array","items":{"type":"number"}},"largest_absolute_gap":{"type":"number"},"half_absolute_sum":{"type":"number"}},"required":["gap_points","largest_absolute_gap","half_absolute_sum"]},"limitations":{"type":"string"}}},"requestExample":{"weights":[643503,1363582,1379089,1098163],"seats":11,"allocation":[2,3,3,3]},"usageGuide":["Input order resolves exact ties. Group indices start at 1. Examples use 2020 US Census apportionment populations with illustrative house sizes."],"outputExample":{"measured_at":"2026-11-24T10:49:25.914Z","source":{"reference":"Caller-supplied group weights and seat count","retrieved_at":"2026-11-24T10:49:25.914Z"},"data":{"gap_points":[3.831804,-3.134934,-3.480738,2.783867],"largest_absolute_gap":3.831804,"half_absolute_sum":6.615671},"limitations":"Input order resolves exact ties. Group indices start at 1. Examples use 2020 US Census apportionment populations with illustrative house sizes."},"tags":["apportionment","proportional allocation","seat allocation","mathematics"],"price_usdc":"0.005"}