Developers
The waterfall engine, as a tool for your agents
Send a cap table and the equity proceeds; get back per-class and per-holder payouts, MOIC, a balance check and a step-by-step audit trace from the same deterministic engine Studio runs (engine version 3). It's stateless: nothing about the deal is stored or logged. Use codes instead of names for holders and nothing personal ever leaves your side.
The API isn't open yet. This page describes it as it will run; the endpoints answer 404 until launch.
AI connector: Merger Waterfall in Claude, ChatGPT and other assistants
Add https://studio.mergerwaterfall.com/api/mcp as a connector in Claude, ChatGPT, Claude Code, Cursor or any MCP client, then sign in with your Merger Waterfall account. No key needed: the client sends you through our sign-in (OAuth). Ask how waterfalls work (answered from the knowledge base), check on your deals and company workspaces, start new ones, and get links into Studio. It shares the shape and status of your work only: never amounts, share counts, prices or who holds what. It sees only what your account can see, with your role (viewers read, editors can also run). On every plan; Free connects its one deal.
The connector isn't open yet; sign-in answers 404 until launch.
| search_knowledgeSearch the Merger Waterfall knowledge base. Read-only. Search the central knowledge base on merger waterfalls and Merger Waterfall Studio (preferences, seniority, participation, conversion, options, SAFEs, purchase price → Net Equity Proceeds, escrow/earnouts, runs, closing, imports, company workspaces, privacy, plans). Returns ranked articles with the best passage and a link. Answer from these and cite the link. |
| get_knowledge_articleRead a knowledge-base article. Read-only. The full text of one knowledge-base article (markdown), its link and related articles. |
| list_dealsList my deals. Read-only. The M&A deals (waterfalls) you can see in Studio: id, name, stage, your role, how many runs, the latest run's status, open flags, and a link. On the Free plan this is your one deal. No amounts. |
| get_deal_overviewGet a deal's shape and status. Read-only. What a deal is made of, without its numbers: consideration forms (cash/stock, escrow, earnout), the parts of the purchase-price bridge, the preference stack (seniority, pari passu, multiple, participation, caps), classes with holder counts, open flags, term-change history and source documents, plus links to each Studio tab. |
| list_runsList a deal's waterfall runs. Read-only. The deal's runs (frozen snapshots of terms + results): id, date, working / locked / closing snapshot, whether the balance check passed, how many terms changed since, and a link to each. |
| get_run_statusHow proceeds flowed in a run (in words). Read-only. One run (default: latest) in words: each class's outcome (preference paid in full / in part / not reached, converted, options in the money or underwater), how many holders are paid, the balance check, and a walk-through by seniority. No amounts: the link opens them in Studio. |
| compare_runsCompare two runs (in words). Read-only. What changed between two runs: classes whose outcome changed, how many holders receive more / less / the same, and which terms were changed in between (no values). The older run is the base. Links to the full compare. |
| list_companiesList my company workspaces. Read-only. Company workspaces (founder cap tables) you can see: id, name, your role, stakeholder and exit-model counts, link. |
| get_company_overviewGet a company workspace's shape and status. Read-only. A company workspace without its numbers or people: share classes and their preference terms, how many stakeholders and securities of each kind, equity plans, waiting exercise requests, last ledger activity, exit models, and links to each Studio page. |
| get_studio_linkGet a link into Studio. Read-only. A sign-in-protected link to the Studio page where the user can see amounts or make a change: editing terms, importing, running, comparing, closing, sharing, team access. Give a dealId or companyId and a view. |
| run_waterfallRun the waterfall with the current terms. Adds something; changes no term, deletes nothing. Create a new run of the deal with its current terms (labeled 'Run via AI connector') and describe the outcome in words, with a link to the amounts. Changes no term and removes nothing. Needs editor access. |
| create_waterfallCreate a new deal (waterfall). Adds something; changes no term, deletes nothing. Create a new, empty deal owned by you and return links to set it up in Studio (cap table, purchase price, preferences, distribution). Your plan's waterfall limit applies (Free: one). |
| create_companyCreate a new company workspace. Adds something; changes no term, deletes nothing. Create a new company workspace (founder cap table) owned by you and return links to import or add its cap table in Studio. Your plan's company limit applies (Free: one, Pro: three). |
claude mcp add --transport http merger-waterfall https://studio.mergerwaterfall.com/api/mcp
Privacy: what the connector returns goes to your assistant's provider under your agreement with them, and it never includes your deal numbers or people. Our product itself uses no AI, and tool inputs and outputs are kept out of our logs. Support: support@mergerwaterfall.com.
Endpoints
| POST | https://studio.mergerwaterfall.com/api/v1/waterfall/compute | Compute a waterfall (metered). |
| POST | https://studio.mergerwaterfall.com/api/mcp | Remote MCP server, Streamable HTTP, stateless. |
| GET | https://studio.mergerwaterfall.com/api/v1/schema | Tool definition with the input JSON Schema. Public. |
| GET | https://studio.mergerwaterfall.com/api/v1/openapi.json | OpenAPI 3.1 document. Public. |
Keys, quota and limits
- Send the key as
Authorization: Bearer mwk_live_…(orx-api-key). Create keys in Settings → API & Agents; each is shown once. - Enterprise includes 10,000 compute calls per UTC month, shared by every key on the account. Only a valid computation counts: bad input, schema, validation and explanation calls are free. Responses carry
x-mw-quota-limit,-usedand-remaining. - Per call: body ≤ 1,000,000 bytes, ≤ 200 classes, ≤ 5,000 holders, ≤ 50,000 issuances, ≤ 50 escrow tranches.
- Seniority: lower
seniorityRank= more senior; equal ranks share a shortfall pro rata. WithescrowTranches,resultis the distribution at close andescrowScheduleshows each release.
MCP tools
| compute_waterfall | Run the deterministic Merger Waterfall engine on a cap table and total equity proceeds. Applies liquidation preferences by seniority (equal ranks share pari passu), participation with caps, the as-converted election, option/warrant treatment and escrow release. Returns per-class and per-holder payouts, MOIC, a balance check and a step-by-step audit trace. Metered: one call per successful computation; invalid input costs nothing. Nothing is stored or logged. |
| get_input_schema | Return the JSON Schema for compute_waterfall's input, the engine version and the size limits. Free. |
| validate_captable | Check a cap table (with or without netEquityProceeds) against the engine contract and size limits, and list modeling warnings (classes nobody holds, holders with no shares, pari passu ranks, missing cost basis). Does not run the engine. Free. |
| explain_result | Walk through a compute_waterfall result in plain English, step by step from its audit trace: preference stack, participation, conversion decisions, residual to common, who receives what, and the balance check. Deterministic narration; no language model. Free. |
Set it up
Call the Compute API · Any HTTP client
curl -s https://studio.mergerwaterfall.com/api/v1/waterfall/compute \
-H "Authorization: Bearer $MW_API_KEY" \
-H "Content-Type: application/json" \
-d '{"netEquityProceeds":12000000,"classes":[{"id":"series-a","name":"Series A","type":"PREFERRED","seniorityRank":0,"issuancePrice":1,"liquidationMultiple":1},{"id":"common","name":"Common","type":"COMMON","seniorityRank":1}],"holders":[{"id":"h1","name":"S-001","issuances":[{"classId":"series-a","shares":5000000,"pricePerShare":1}]},{"id":"h2","name":"S-002","issuances":[{"classId":"common","shares":5000000,"pricePerShare":0.001}]}]}'Invalid input returns 422 with `issues` and is not metered. Quota headers: x-mw-quota-limit / -used / -remaining.
Claude Code · Terminal
claude mcp add --transport http merger-waterfall https://studio.mergerwaterfall.com/api/mcp \
--header "Authorization: Bearer $MW_API_KEY"Then ask Claude to model a deal; it calls compute_waterfall and can narrate the result with explain_result.
Claude Desktop · claude_desktop_config.json
{
"mcpServers": {
"merger-waterfall": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://studio.mergerwaterfall.com/api/mcp",
"--header",
"Authorization:${MW_AUTH}"
],
"env": {
"MW_AUTH": "Bearer mwk_live_YOUR_KEY"
}
}
}
}Custom connectors added in Claude's settings expect OAuth, which this server doesn't offer yet; the mcp-remote bridge sends your API key as a header instead. Restart Claude Desktop after editing the file.
Claude API (MCP connector) · Your app, TypeScript SDK
import Anthropic from "@anthropic-ai/sdk";
const client = new Anthropic();
const response = await client.beta.messages.create({
model: "claude-opus-5-5",
max_tokens: 16000,
betas: ["mcp-client-2025-11-20"],
mcp_servers: [
{ type: "url", url: "https://studio.mergerwaterfall.com/api/mcp", name: "merger-waterfall", authorization_token: process.env.MW_API_KEY },
],
tools: [{ type: "mcp_toolset", mcp_server_name: "merger-waterfall" }],
messages: [{ role: "user", content: "Run the waterfall for this cap table at $12M and explain who gets what: …" }],
});authorization_token is sent as the Bearer token, so the API key works as is.
ChatGPT (Custom GPT Action) · GPT builder → Configure → Actions
1. Create new action → Import from URL: https://studio.mergerwaterfall.com/api/v1/openapi.json
2. Authentication → API Key → Auth type: Bearer → paste your key.
3. Privacy policy: your firm's policy URL (required to publish).
4. Test with: "Compute the waterfall for 5M Series A shares at $1 (1x non-participating)
and 5M common at $12M of proceeds."ChatGPT's MCP connectors require OAuth, which this server doesn't offer yet, so use an Action: it calls the same REST endpoint (operation computeWaterfall).
Any agent framework · Tool definition + one POST
// 1. Discover: name, description and JSON Schema, ready for a tool definition.
const { tools } = await (await fetch("https://studio.mergerwaterfall.com/api/v1/schema")).json();
const tool = tools[0]; // compute_merger_waterfall
// 2. When the model calls the tool, forward its input:
async function computeWaterfall(input: unknown) {
const res = await fetch("https://studio.mergerwaterfall.com/api/v1/waterfall/compute", {
method: "POST",
headers: { Authorization: `Bearer ${process.env.MW_API_KEY}`, "Content-Type": "application/json" },
body: JSON.stringify(input),
});
return res.json(); // 422 → hand `issues` back to the model to fix its input
}Sample input
A 1x non-participating Series A over common at $12M. Omitted fields take their defaults; the full contract is in the OpenAPI document.
{
"netEquityProceeds": 12000000,
"classes": [
{
"id": "series-a",
"name": "Series A",
"type": "PREFERRED",
"seniorityRank": 0,
"issuancePrice": 1,
"liquidationMultiple": 1
},
{
"id": "common",
"name": "Common",
"type": "COMMON",
"seniorityRank": 1
}
],
"holders": [
{
"id": "h1",
"name": "S-001",
"issuances": [
{
"classId": "series-a",
"shares": 5000000,
"pricePerShare": 1
}
]
},
{
"id": "h2",
"name": "S-002",
"issuances": [
{
"classId": "common",
"shares": 5000000,
"pricePerShare": 0.001
}
]
}
]
}Errors
| 400 | Body is not valid JSON. |
| 401 | Missing, invalid or revoked API key. |
| 403 | The key's account doesn't include the API (Enterprise). |
| 413 | Body over 1,000,000 bytes, or a size limit below exceeded. |
| 422 | Input breaks the engine contract. `issues` lists each problem. Not metered. |
| 429 | Monthly quota used up. The body says when it resets. |