{"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},"group":{"type":"integer","minimum":1,"maximum":40}},"required":["weights","seats","group"],"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":{"already_seated":{"type":"boolean"},"extra_weight":{"type":"integer"}},"required":["already_seated","extra_weight"]},"limitations":{"type":"string"}}},"requestExample":{"weights":[643503,1363582,1379089,1098163],"seats":11,"group":1},"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.920Z","source":{"reference":"Caller-supplied group weights and seat count","retrieved_at":"2026-11-24T10:49:25.920Z"},"data":{"already_seated":true,"extra_weight":0},"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"}