Skip to main content
Glama

Rank levers

rank_levers
Read-onlyIdempotent

Test nine single changes a small business owner can make and rank them by how much each lowers the chance of running short of money in the next 52 weeks, with the change in year-end money as a tiebreak. The levers: take a third up front, take 15 days off payment terms, raise prices 5 percent, take a fifth less owner draw for six months, cut overhead 10 percent, raise the credit line by half, run one crew lighter, add a crew, and buy three more enquiries a week. Each lever and the baseline run 3,000 simulated years with the same seed, so the difference is the lever and not the luck. Takes the same business description as a cash year simulation: a preset plus any overridden inputs. Pure arithmetic: no network access, nothing stored.

Input 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

A4.2/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnly/idempotent/openWorld=false, but the description adds real method context: every lever and the baseline run 3,000 simulated years on the same seed, so differences come from the lever, not luck. It also notes the computation is pure arithmetic with nothing stored. It stops short of flagging cost/runtime for ~30,000 simulated years, but the disclosure is well beyond the annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the core action and ranking criterion, with no filler. The long lever enumeration earns its place because it defines the exact scope of what is tested, and the methodology rationale is compressed into two tight sentences.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

No output schema exists, so the description carries the return-value burden, and it does describe what is produced (a ranking of levers by shortfall probability with a money tiebreak). It lacks detail on the result's shape or the baseline row, but for a 24-parameter, zero-required tool it is otherwise complete.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100% with 24 fully documented parameters, so the schema does the heavy lifting and a 3 is the baseline. The description only adds a framing sentence ('a preset plus any overridden inputs'), which is a minor structural hint rather than new meaning about individual fields.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a precise verb+resource ('Test nine single changes ... and rank them') plus the exact ranking metric (lowering the chance of running short over 52 weeks) and tiebreak (change in year-end money). It enumerates all nine levers and explicitly frames itself against the sibling simulation ('Takes the same business description as a cash year simulation'), so it is distinguishable from simulate_cash_year without opening any schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It establishes clear usage context by tying itself to the cash-year simulation inputs, implying it is the comparison counterpart to that tool. However, it never explicitly names simulate_cash_year or states when to prefer a single simulation over the lever ranking, so the agent must infer the routing.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources