CleanQuote ← Back to the tool

DEVELOPER & AGENT API

CleanQuote API

One stateless endpoint that runs the same pricing formula as the web tool. No auth, no API key, no storage of inputs. Built so a script — or an AI agent — can produce a defensible cleaning estimate and explain it to a human.

POST https://getcleanq.com/api/quote
Content-Type: application/json

Request

{
  "service": "Regular Cleaning",      // or "Deep Cleaning", "Move-out Cleaning"
  "bedrooms": 2,
  "bathrooms": 2,
  "homeSize": "medium",               // small | medium | large | xlarge
  "addons": ["Inside oven"],          // optional
  "book": {                           // optional: your own rates
    "minimumFee": 120,
    "hourlyRate": 55,
    "margin": 20
  }
}

Response

{
  "input":  { "service": "Regular Cleaning", "bedrooms": 2, "bathrooms": 2, "homeSize": "medium", "addons": [] },
  "priceBook": { "minimumFee": 120, "hourlyRate": 55, "margin": 20, ... },
  "estimate": {
    "hours": 4,
    "serviceCost": 220,
    "basePrice": 275,
    "marginAmount": 55,
    "addons": [],
    "addonTotal": 0,
    "total": 275
  },
  "formula": { "hours": "...", "cost": "...", "price": "..." }
}

The formula field returns the exact rules used, so an agent can justify the number instead of presenting a black box.

Try it

curl -s -X POST https://getcleanq.com/api/quote \
  -H "Content-Type: application/json" \
  -d '{"service":"Deep Cleaning","bedrooms":3,"bathrooms":2,"homeSize":"large","addons":["Inside oven"]}'

The formula

StepRule
Hoursmax(1, round((baseHours + bedrooms×0.25 + bathrooms×0.35) × multiplier, 0.5))
Costmax(minimumFee, hours × hourlyRate)
Pricecost ÷ (1 − margin) + add-ons

Service multipliers default to regular 1.00, deep 1.45, move-out 1.60. Base hours by size: small 2, medium 3, large 4, xlarge 5.

Machine-readable spec

openapi.json — OpenAPI 3.1 description of both /api/quote and /api/feedback. Drop it into any agent or client generator.

MCP server (for AI agents)

If you are wiring this into an AI client that speaks the Model Context Protocol, use the MCP endpoint instead of raw HTTP. It exposes the same calculator as two tools.

POST https://getcleanq.com/mcp
transport: Streamable HTTP · JSON-RPC 2.0 · protocol 2025-06-18
ToolPurpose
calculate_quotePrice a job; returns hours, cost, price, add-ons, and the formula used
analyze_quote_historyAggregate records the user provides (exported history) — counts, revenue, average/median ticket, by service and month, revenue per hour. Nothing is stored
get_addon_catalogList valid add-on names so calls do not misspell them

Discovery file: /.well-known/mcp.json

Limits & expectations. CORS is open, requests are rate-limited to 20,000/day per deployment, and no inputs are stored. This is a free public utility: no SLA, no support contract. If you need volume guarantees or custom formulas, get in touch.

Prefer the UI?

The same engine powers a free browser tool with a saved price book and printable output.

Open the quote tool →