Skip to main content
Glama

Dry Run

Simulate a cash year

simulate_cash_year
Read-onlyIdempotent

Simulate the next 52 weeks of a small services business 10,000 times (Monte Carlo) and report the chance it runs short of money, the week that is most likely to happen, reachable money (bank balance plus unused credit) week by week at the 10th, 50th and 90th percentile, the drivers that separated the futures that ran short from the ones that survived, and the profit the business makes at its own averages. Start from a trade preset (excavation, plumbing, hvac, landscaping, roofing, or general) and override any input: cash, credit line, money owed to the business, work already sold, crews and their weekly cost, overhead, owner draw, monthly bills, enquiries, close rate, seasonality, job types with value, materials, deposit and payment terms, bad debt, tax, and random setbacks. Money is in dollars and rates are fractions (0.3 is 30 percent). The same inputs and seed always return the same answer. Pure arithmetic: no network access, nothing stored.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameNoBusiness name, used only to label the result.
seedNoSeed for the random draws. The same inputs and seed always return the same answer. Default "dry-run".
crewsNoCrews (or technicians, or production units) working in parallel. One crew delivers one crew-week a week.
presetNoStarting template: excavation, plumbing, hvac, landscaping, roofing, or general for any other small services business. Every field below overrides it. Default general.general
leads_cvNoWeek to week spread of enquiries. Default 0.35.
tax_rateNoShare of profit set aside for tax, paid quarterly.
job_typesNoThe kinds of work sold. Replaces the preset list.
surprisesNoRandom setbacks such as a machine breakdown or someone quitting. Replaces the preset list.
close_rateNoShare of enquiries that become jobs, as a fraction.
credit_aprNoAnnual interest on the drawn balance, as a fraction. 0.11 is 11 percent.
start_cashNoMoney in the bank on the day the year starts, in dollars.
credit_lineNoSize of the line of credit, in dollars. 0 for none.
fixed_costsNoMonthly fixed bills such as rent, insurance and equipment notes. Replaces the preset list.
seasonalityNoTwelve multipliers on enquiry volume, January first. 1 is an average month.
start_monthNoMonth the simulated year starts, 1 for January. Default: the current month.
credit_drawnNoHow much of the line is already drawn, in dollars.
bad_debt_rateNoShare of invoiced balances never collected, as a fraction.
leads_per_weekNoEnquiries in an average week before seasonality.
overhead_weeklyNoWeekly overhead that runs whether or not anyone works: office, software, admin wages.
collection_shapeNoHow disciplined customers are about paying on time: 2 is ragged with a long tail of late payers, 6 is disciplined.
crew_cost_weeklyNoFully loaded weekly cost of one crew: wages, burden, fuel, vehicle.
owner_draw_weeklyNoWhat the owner takes out each week.
opening_receivablesNoWork already invoiced and not yet paid on day one, in dollars.
opening_backlog_weeksNoCrew-weeks of work already sold and waiting to start.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources