{"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":{"below":{"type":"array","items":{"type":"integer"}},"above":{"type":"array","items":{"type":"integer"}}},"required":["below","above"]},"limitations":{"type":"string"}}},"requestExample":{"weights":[643503,1363582,1379089,1098163],"seats":11,"allocation":[1,3,4,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.902Z","source":{"reference":"Caller-supplied group weights and seat count","retrieved_at":"2026-11-24T10:49:25.902Z"},"data":{"below":[],"above":[]},"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"}