Mark Dornan, 22, was arrested after officers from the UK Border Force intercepted a parcel sent from Belgium.
The parcel was opened at a Royal Mail depot in Coventry and found to contain over half a kilo of the Class B drug.
Police obtained a search warrant and raided Dornan's home in Raploch, Stirling on 8 April.
Stirling Sheriff Court was told officers found a shoebox in his bedroom containing digital scales, almost Â£570 in cash, and a card containing notations.
They also found a message on a phone about an agreement to supply someone with a half-ounce of the drug for Â£125.
Dornan, a plasterer from Raploch, pleaded guilty to being concerned in the supply of herbal cannabis.
Defence agent Frazer McCready said his client, a father-of-one, had no criminal record.
Mr McCready said: "He was having financial difficulties, and was clearly beyond his means.
"Unfortunately rather than go to some sort of debt counselling, as he is now doing, he foolishly decided to embark on this exercise with regard to his debts by involving himself in the supply of cannabis.
"Clearly that type of drug was going to be intercepted, and it was.
"There were consequences immediately."
Sheriff Wyllie Robertson told Dornan that despite the fact he had no offending history, he had "no alternative" but to impose the jail sentence, because of the value of the drug involved.

Rents for grade A offices have risen to £15.50-per-sq ft over the past year, according to commercial agents.
But they are still well below the UK average of £24.
It is claimed that the prospect of a relatively low financial return is acting as a barrier to substantial build projects.
In March, an Invest NI report said there is a shortage of grade A space office in Belfast.
Grade A offices are classed as new or refurbished buildings, in prime locations, with open-plan layouts.
Ian Duddy of Colliers International in Belfast said: "The shortage of grade A space in Belfast has led a number of major occupiers to develop their own headquarter buildings.
"Further rental growth in the grade A market is necessary to encourage new development in the city."
Office development has slowed since the 2008 property market crash.
Loans of public money could soon be made available to property developers to help them build offices, after a recent report for Invest NI described supply as "extremely limited".
Invest is exploring whether to advance loans as "a short-term intervention".
A man who ordered cannabis on the "dark web" and planned to deal the drug to clear his debts has been jailed for six months.
[NEXT_CONCEPT]
Rents for premium office space in Belfast city centre have risen by 19%, but experts say still not enough to generate a boom in developments.