MONARK Cascade API
The Cascade API from MONARK — 1 operation(s) for cascade.
The Cascade API from MONARK — 1 operation(s) for cascade.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/monarkgate-tech:monarkgate-tech-cascade-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: MONARK harness — HTTP/JSON mirror Cascade API
version: 0.4.0
description: Plain-JSON mirror of the MONARK MCP harness (attest, gate, cascade, calibrate). Same frozen contracts as the MCP surface; derived from the frozen schemas, never hand-written. The gate only emits a decision; it never calls the named tool.
servers:
- url: https://api.monarkgate.tech
tags:
- name: Cascade
paths:
/cascade:
post:
operationId: cascade
summary: Run the cascade operation (JSON mirror of the MCP tool)
description: 'Estimated liquidable amount from the real UKEMI cascade primitives (imported, never re-implemented): an Eisenberg-Noe clearing of the interbank system (L, e) with alpha=beta=1 yields the largest clearing vector L*; each node is then read as a leveraged position — collateral is its cleared balance-sheet value (external assets plus interbank receipts under L*), debt is its nominal obligations, liquidation threshold K=1 — and liquidableAmount sums the debts of the nodes whose cleared value, once shocked by the caller-carried 24h fraction, no longer covers their obligations. Shocking the whole cleared value is a v0 simplification; no source supports shocking interbank receivables. yhat is that liquidable amount: a monetary quantity in the reference asset, a single point that HIKAE conformalizes downstream — no guarantee, no score. Downstream, no cascade calibration is committed; the gate abstains (under_calib) on this class. This cascade tool is v0, replaced at U-5.'
requestBody:
required: true
content:
application/json:
schema:
type: object
additionalProperties: false
required:
- L
- e
- shock
- producedAt
properties:
L:
type: array
description: Nominal interbank liabilities matrix L[i][j] = what node i owes node j. Square, entries >= 0, zero diagonal.
maxItems: 64
items:
type: array
items:
type: number
maxItems: 64
e:
type: array
description: External assets (liquidation value) per node at the clearing date. One value per node.
maxItems: 64
items:
type: number
shock:
type: number
description: 24h collateral price shock fraction in [0,1] — a declared fixture parameter, not a dynamics model.
producedAt:
type: string
description: Caller-carried RFC3339 instant, injected for hash stability (D4); the tool reads no clock.
responses:
'200':
description: The frozen structuredContent plus the honesty content text (K-1).
content:
application/json:
schema:
type: object
additionalProperties: false
required:
- structuredContent
- content
properties:
structuredContent:
type: object
additionalProperties: false
required:
- schema_version
- task_class
- yhat
- predictor_id
- produced_at
properties:
schema_version:
type: string
pattern: ^\d+\.\d+\.\d+$
task_class:
type: string
pattern: ^[ -~]+$
minLength: 1
yhat:
type:
- string
- number
predictor_id:
type: string
pattern: ^[ -~]+$
minLength: 1
produced_at:
type: string
format: date-time
features_digest:
type: string
pattern: ^[0-9a-f]{64}$
content:
type: array
items:
type: object
additionalProperties: false
required:
- type
- text
properties:
type:
const: text
text:
type: string
'400':
description: Input failed the frozen schema, or the tool refused the input (never a silent result).
content:
application/json:
schema:
oneOf:
- type: object
additionalProperties: false
required:
- error
- operation
- message
- code
properties:
error:
const: tool_error
operation:
type: string
minLength: 1
message:
type: string
code:
enum:
- param_invalid
- schema_version_unsupported
- byo_calibration_invalid
- byo_yhat_type
- byo_set_tau_cap
- yhat_type_mismatch
- liq_yhat_domain
- attested_inconsistent
- task_class_unknown
- byo_overrides_committed
- byo_edge_blank
- byo_lookalike_committed
- byo_reserved_kata
- byo_lookalike_confusable
- produced_at_invalid
- produced_at_future
- policy_alpha_mismatch
- policy_nmin_mismatch
- task_class_retired
- attest_refused
- calibrate_input_invalid
- cascade_input_invalid
- ukemi_predict_input_invalid
- kata_key_invalid
- kata_yhat_domain
- features_digest_required
- policy_tau_cap
- produced_at_off_grid
- produced_at_stale
- type: object
additionalProperties: false
required:
- error
- operation
- message
- code
- issues
properties:
error:
const: invalid_input
operation:
type: string
minLength: 1
message:
type: string
code:
const: input_invalid
issues:
type: array
- type: object
additionalProperties: false
required:
- error
- operation
- message
- code
properties:
error:
const: invalid_json
operation:
type: string
minLength: 1
message:
type: string
code:
const: json_invalid
'403':
description: Origin present and not a monarkgate.tech origin (K-9).
'413':
description: The request body is larger than the harness cap (payload_too_large); the connection is closed.
'500':
description: The tool output broke its frozen contract, or the tool failed (both name the operation); or the request failed in transport (no operation); never a stack.
content:
application/json:
schema:
oneOf:
- type: object
additionalProperties: false
required:
- error
- operation
properties:
error:
const: internal_error
operation:
type: string
minLength: 1
code:
const: output_invalid
- type: object
additionalProperties: false
required:
- error
properties:
error:
const: internal_error
tags:
- Cascade