Weight gives you a starting scale
Current weight is the obvious first input because a 5 kg dog and a 35 kg dog cannot sensibly start from the same daily amount. But weight alone does not tell you whether either dog is lean, overweight, growing or unusually active.
Use an accurate recent weight rather than guessing from an old vet record.