{
  "x402Version": 2,
  "id": 39897,
  "slug": "39897",
  "resource": "https://business-frameworks.matryoshka-paradigms.workers.dev/apply/value/decide/reinvest-or-distribute",
  "description": "Business Frameworks — Reinvest or distribute, applied to the caller's own numbers. Send r, the cash available, the runway target and the candidate uses with their returns; get them ranked, the ones to fund, where to stop, and what to distribute. Deterministic (the node's rule, no model); returns the worked decision plus the node text and its public citations. Schema at GET /apply/value/decide/reinvest-or-distribute.",
  "type": "http",
  "resourceType": "Developer Tool",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0xbBaCd5111E0Ca3a52DdAA39D4723Cf75C1A75D91",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "50000",
      "amountUsd": 0.05,
      "maxTimeoutSeconds": 300
    }
  ],
  "outputSchema": {
    "properties": {
      "example": {
        "type": "object"
      },
      "type": {
        "type": "string"
      }
    },
    "required": [
      "type"
    ],
    "type": "object"
  },
  "extensions": {
    "bazaar": {
      "info": {
        "input": {
          "body": {
            "candidates": [
              {
                "cash_required": 60000,
                "expected_return_pct": 22,
                "name": "second delivery van",
                "probability": 0.9
              },
              {
                "cash_required": 120000,
                "expected_return_pct": 30,
                "name": "new product line",
                "probability": 0.5
              },
              {
                "cash_required": 80000,
                "expected_return_pct": 12,
                "name": "showroom refit",
                "probability": 0.8
              }
            ],
            "cash_available": 400000,
            "r_pct": 13,
            "revenue_usd": 3500000,
            "runway_target": 150000
          },
          "bodyType": "json",
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "applied": {
              "action": [
                "<what to do first>"
              ],
              "basis": [
                "<where the node ends and the arithmetic begins>"
              ],
              "check": "<when to re-run>",
              "figures": "<the computed figures>",
              "verdict": "<the decision, worked for these inputs>"
            },
            "handle": "business-frameworks/value/decide/reinvest-or-distribute@1.0",
            "node": {
              "cites": [
                "Bruner, R., Applied Mergers and Acquisitions, Wiley, 2004, ch. 3 (\"Does M&A Pay?\")."
              ],
              "text": "<the node text>"
            }
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "properties": {
                  "candidates": {
                    "items": {
                      "properties": {
                        "cash_required": {
                          "minimum": 0,
                          "type": "number"
                        },
                        "expected_return_pct": {
                          "type": "number"
                        },
                        "name": {
                          "type": "string"
                        },
                        "probability": {
                          "description": "below $5M: probability the use works",
                          "maximum": 1,
                          "minimum": 0,
                          "type": "number"
                        }
                      },
                      "required": [
                        "name",
                        "cash_required",
                        "expected_return_pct"
                      ],
                      "type": "object"
                    },
                    "type": "array"
                  },
                  "cash_available": {
                    "minimum": 0,
                    "type": "number"
                  },
                  "r_pct": {
                    "type": "number"
                  },
                  "revenue_usd": {
                    "description": "below $5M each candidate's probability is applied",
                    "type": "number"
                  },
                  "runway_target": {
                    "description": "cash to hold before any distribution",
                    "minimum": 0,
                    "type": "number"
                  }
                },
                "required": [
                  "r_pct",
                  "cash_available",
                  "runway_target",
                  "candidates"
                ],
                "type": "object"
              },
              "bodyType": {
                "enum": [
                  "json",
                  "form-data",
                  "text"
                ],
                "type": "string"
              },
              "method": {
                "enum": [
                  "POST"
                ],
                "type": "string"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method",
              "bodyType",
              "body"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "bazaar"
  ],
  "sourceHost": "business-frameworks.matryoshka-paradigms.workers.dev",
  "lastUpdated": "2026-10-07T05:56:16.595Z",
  "quality": {
    "calls30d": 1,
    "uniquePayers30d": 1,
    "lastCalledAt": "2026-10-07T05:56:15.569Z"
  },
  "metadata": {
    "extensions": {
      "bazaar": {
        "info": {
          "input": {
            "body": {
              "candidates": [
                {
                  "cash_required": 60000,
                  "expected_return_pct": 22,
                  "name": "second delivery van",
                  "probability": 0.9
                },
                {
                  "cash_required": 120000,
                  "expected_return_pct": 30,
                  "name": "new product line",
                  "probability": 0.5
                },
                {
                  "cash_required": 80000,
                  "expected_return_pct": 12,
                  "name": "showroom refit",
                  "probability": 0.8
                }
              ],
              "cash_available": 400000,
              "r_pct": 13,
              "revenue_usd": 3500000,
              "runway_target": 150000
            },
            "bodyType": "json",
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "applied": {
                "action": [
                  "<what to do first>"
                ],
                "basis": [
                  "<where the node ends and the arithmetic begins>"
                ],
                "check": "<when to re-run>",
                "figures": "<the computed figures>",
                "verdict": "<the decision, worked for these inputs>"
              },
              "handle": "business-frameworks/value/decide/reinvest-or-distribute@1.0",
              "node": {
                "cites": [
                  "Bruner, R., Applied Mergers and Acquisitions, Wiley, 2004, ch. 3 (\"Does M&A Pay?\")."
                ],
                "text": "<the node text>"
              }
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "properties": {
                    "candidates": {
                      "items": {
                        "properties": {
                          "cash_required": {
                            "minimum": 0,
                            "type": "number"
                          },
                          "expected_return_pct": {
                            "type": "number"
                          },
                          "name": {
                            "type": "string"
                          },
                          "probability": {
                            "description": "below $5M: probability the use works",
                            "maximum": 1,
                            "minimum": 0,
                            "type": "number"
                          }
                        },
                        "required": [
                          "name",
                          "cash_required",
                          "expected_return_pct"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "cash_available": {
                      "minimum": 0,
                      "type": "number"
                    },
                    "r_pct": {
                      "type": "number"
                    },
                    "revenue_usd": {
                      "description": "below $5M each candidate's probability is applied",
                      "type": "number"
                    },
                    "runway_target": {
                      "description": "cash to hold before any distribution",
                      "minimum": 0,
                      "type": "number"
                    }
                  },
                  "required": [
                    "r_pct",
                    "cash_available",
                    "runway_target",
                    "candidates"
                  ],
                  "type": "object"
                },
                "bodyType": {
                  "enum": [
                    "json",
                    "form-data",
                    "text"
                  ],
                  "type": "string"
                },
                "method": {
                  "enum": [
                    "POST"
                  ],
                  "type": "string"
                },
                "type": {
                  "const": "http",
                  "type": "string"
                }
              },
              "required": [
                "type",
                "method",
                "bodyType",
                "body"
              ],
              "type": "object"
            },
            "output": {
              "properties": {
                "example": {
                  "type": "object"
                },
                "type": {
                  "type": "string"
                }
              },
              "required": [
                "type"
              ],
              "type": "object"
            }
          },
          "required": [
            "input"
          ],
          "type": "object"
        }
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": false,
  "featured": false,
  "provider": {
    "host": "business-frameworks.matryoshka-paradigms.workers.dev",
    "manifest_name": "business-frameworks.matryoshka-paradigms.workers.dev",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-10-14T01:15:01.050Z"
  },
  "exampleResponse": {
    "applied": {
      "action": [
        "<what to do first>"
      ],
      "basis": [
        "<where the node ends and the arithmetic begins>"
      ],
      "check": "<when to re-run>",
      "figures": "<the computed figures>",
      "verdict": "<the decision, worked for these inputs>"
    },
    "handle": "business-frameworks/value/decide/reinvest-or-distribute@1.0",
    "node": {
      "cites": [
        "Bruner, R., Applied Mergers and Acquisitions, Wiley, 2004, ch. 3 (\"Does M&A Pay?\")."
      ],
      "text": "<the node text>"
    }
  }
}