MONARK Calibrate API

The Calibrate API from MONARK — 1 operation(s) for calibrate.

GitHub OpenAPI

Operations 1

POST /calibrate Run the calibrate operation (JSON mirror of the MCP tool) #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • 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.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/monarkgate-tech:monarkgate-tech-calibrate-api"
All apis
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.

Get an API 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 Specification

monarkgate-tech-calibrate-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: MONARK harness — HTTP/JSON mirror Calibrate 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: Calibrate
paths:
  /calibrate:
    post:
      operationId: calibrate
      summary: Run the calibrate operation (JSON mirror of the MCP tool)
      description: split-conformal quantile at miscoverage α over caller-supplied nonconformity scores. MONARK does not see, store, or verify the caller's data or model, and does not validate that the supplied numbers are nonconformity scores of any model. Marginal 1−α coverage holds ONLY for future points exchangeable with the supplied scores; non-exchangeable data (e.g. distribution-shifted or time-ordered) voids it. Never a probability of being right.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              additionalProperties: false
              required:
              - scores
              - alpha
              - nMin
              properties:
                scores:
                  type: array
                  description: 'Caller-supplied nonconformity scores (BYO: the caller owns the score function; MONARK stays agnostic).'
                  maxItems: 10000
                  items:
                    type: number
                alpha:
                  type: number
                  description: Target miscoverage in the open interval (0,1).
                nMin:
                  type: integer
                  description: Minimum calibration count (>= 1); n < nMin fails closed to under_calib.
      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:
                    - qhat
                    - n
                    - alpha
                    - method
                    - scores_sha256
                    - label
                    - reason
                    properties:
                      qhat:
                        type:
                        - number
                        - 'null'
                        description: The conformal quantile q̂, or null when the calibration is insufficient (fail-closed).
                      n:
                        type: integer
                        description: The number of supplied scores (echoed).
                      alpha:
                        type: number
                        description: The target miscoverage (echoed).
                      method:
                        const: split
                        description: The conformal method — always split.
                      scores_sha256:
                        type: string
                        pattern: ^[0-9a-f]{64}$
                        description: 'scoresSha256(scores) in the caller''s order: the audit tie to verdict.scores_sha256 (C2).'
                      label:
                        type: string
                        description: 'Honesty label (K-1): the marginal coverage holds only under exchangeability with the supplied scores.'
                      reason:
                        type:
                        - string
                        - 'null'
                        description: under_calib when q̂ is null, else null on success.
                  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:
      - Calibrate