78trust / 100

Decide Cash Cycle

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

x402 APIPassing, checked 46 min ago

Business Frameworks — Manage the cash cycle, applied to the caller's own numbers. Send the three day-counts and the cost shares; get the cycle, the cents tied up per sales dollar, and the lever to pull first. Deterministic (the node's rule, no model); returns the worked decision plus the node text and its public citations. Schema at GET /apply/cash-flow/decide/cash-cycle.

POST https://business-frameworks.matryoshka-paradigms.workers.dev/apply/cash-flow/decide/cash-cycle

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
129 ms typical, 998 ms slowest 5%
Last check
46 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/cash-flow/decide/cash-cycle" \
  -H "content-type: application/json" \
  -d '{"cost_of_sales_per_sales_dollar":0.65,"days_inventory":60,"days_receivable":45,"days_supplier_credit":30,"operating_expense_per_sales_dollar":0.25}'
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%2Fcash-flow%2Fdecide%2Fcash-cycle
const res = await pay("https://business-frameworks.matryoshka-paradigms.workers.dev/apply/cash-flow/decide/cash-cycle", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"cost_of_sales_per_sales_dollar":0.65,"days_inventory":60,"days_receivable":45,"days_supplier_credit":30,"operating_expense_per_sales_dollar":0.25}),
});
console.log(await res.json());

Example input

{
  "cost_of_sales_per_sales_dollar": 0.65,
  "days_inventory": 60,
  "days_receivable": 45,
  "days_supplier_credit": 30,
  "operating_expense_per_sales_dollar": 0.25
}

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/cash-flow/decide/[email protected]",
  "node": {
    "cites": [
      "Churchill, N. and Mullins, J., \"How Fast Can Your Company Afford to Grow?\", Harvard Business Review, May 2001."
    ],
    "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
46 min agoPassed40260 ms$0.05
4 h agoPassed402861 ms$0.05
8 h agoPassed402138 ms$0.05
11 h agoPassed40246 ms$0.05
15 h agoPassed402785 ms$0.05
19 h agoPassed402864 ms$0.05
22 h agoPassed4021.2 s$0.05
26 h agoPassed402801 ms$0.05
30 h agoPassed40260 ms$0.05
33 h agoPassed402122 ms$0.05
37 h agoPassed402112 ms$0.05
41 h agoPassed402129 ms$0.05
44 h agoPassed40247 ms$0.05
2 days agoPassed402998 ms$0.05