Linear two-step chain for in-house-bank (IHB) settlement cycles. Step 1 computes N-entity corporate cash netting: gross inter-company positions to net positions to minimum settlement legs using a greedy matching algorithm per BIS CPMI net settlement framework (2012). Reports wire-count savings and netting efficiency. Netting statement is suitable for anchor_batch Merkle-leaf receipts. Step 2 allocates overnight IHB interest on the net settlement balances per OECD Transfer Pricing Guidelines 2022 Chapter X arm’s-length rate, with ACT/360 day-count and per-member withholding tax deduction. NOT FICC clearing margin netting. No personal data is processed.
compute_multilateral_netting{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "compute_multilateral_netting",
"arguments": {
"base_currency": "USD",
"entities": [
{"entity_id": "PARENT_CO", "name": "Parent Corp"},
{"entity_id": "SUB_US", "name": "US Subsidiary"},
{"entity_id": "SUB_EU", "name": "EU Subsidiary"}
],
"gross_positions": [
{"from_entity":"PARENT_CO","to_entity":"SUB_US","amount":1000,"currency":"USD"},
{"from_entity":"SUB_US","to_entity":"SUB_EU","amount":800,"currency":"USD"},
{"from_entity":"SUB_EU","to_entity":"PARENT_CO","amount":600,"currency":"USD"}
]
}
},
"id": 1
}
allocate_ihb_interest{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "allocate_ihb_interest",
"arguments": {
"pool_type": "notional",
"pool_rate_annual_pct": 5.0,
"day_count_convention": "ACT/360",
"period_days": 1,
"currency": "USD",
"members": [
{"member_id": "PARENT_CO", "balance": 200, "withholding_rate_pct": 0},
{"member_id": "SUB_US", "balance": -200, "withholding_rate_pct": 0},
{"member_id": "SUB_EU", "balance": 200, "withholding_rate_pct": 15}
]
}
},
"id": 2
}
Copy this paragraph into Claude, OpenClaw, or any MCP-aware agent to run this whole workflow on the server and check one field that answers a real question.
Question: Under a single master agreement, how much settlement volume does multilateral netting remove across these positions?
Run the AINumbers MCP tool `run_chain` with {"chain":"multilateral-netting-settlement"} and read `art-259-compute-multilateral-netting.netting_efficiency_pct`.
Re-run with `inputs` for `art-259-compute-multilateral-netting`, reusing the values that result echoed, with `gross_positions` changed so ENTITY A pays only 100 instead of 1000. Compare the same field.
Verify: call `verify_execution_hash` (https://mcp.ainumbers.co/mcp) with `claimed_hash` set to `composite_execution_hash` and the full `composite_artifact`.
Ledger, for a human re-check: https://ledger.ainumbers.co/
PII rule: send synthetic or anonymised inputs only. The MCP server runs these kernels and logs no payloads.
Chain page: https://ainumbers.co/chaingraph/chains/multilateral-netting-settlement.html