78trust / 100

Decide Reinvest Or Distribute

by business-frameworks.matryoshka-paradigms.workers.dev in AI models & inference

x402 APIPassing, checked 34 min ago

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.

POST https://business-frameworks.matryoshka-paradigms.workers.dev/apply/value/decide/reinvest-or-distribute

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
69 ms typical, 1.1 s slowest 5%
Last check
34 min ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X POST "https://business-frameworks.matryoshka-paradigms.workers.dev/apply/value/decide/reinvest-or-distribute" \
  -H "content-type: application/json" \
  -d '{"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}'
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client().register(
  "eip155:8453",
  new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fbusiness-frameworks.matryoshka-paradigms.workers.dev%2Fapply%2Fvalue%2Fdecide%2Freinvest-or-distribute
const res = await pay("https://business-frameworks.matryoshka-paradigms.workers.dev/apply/value/decide/reinvest-or-distribute", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"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}),
});
console.log(await res.json());

Example input

{
  "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
}

Example output

{
  "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/[email protected]",
  "node": {
    "cites": [
      "Bruner, R., Applied Mergers and Acquisitions, Wiley, 2004, ch. 3 (\"Does M&A Pay?\")."
    ],
    "text": "<the node text>"
  }
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
34 min agoPassed40246 ms$0.05
4 h agoPassed40245 ms$0.05
8 h agoPassed402893 ms$0.05
11 h agoPassed402136 ms$0.05
15 h agoPassed40250 ms$0.05
19 h agoPassed402886 ms$0.05
22 h agoPassed4021.1 s$0.05
26 h agoPassed40269 ms$0.05
30 h agoPassed40244 ms$0.05
33 h agoPassed40272 ms$0.05
37 h agoPassed402134 ms$0.05
41 h agoPassed4021.7 s$0.05
44 h agoPassed40242 ms$0.05
2 days agoPassed40246 ms$0.05