At a glance

VendorDraxis (first-party). External Push is built into the platform, there is no third-party vendor to authorize against.
Source typeexternal_push
Vendor ID (slug)external-push
Base URLn/a, push-driven. The Add Integration form hides the API Endpoint, Authentication Method, and Schedule fields for this vendor and renders an inline helper card instead.
Auth methodSource-scoped Personal Access Token (PAT) minted from the integration's card after save. The PAT is restricted to one kri_source.id, calling any other tool with it returns a scope-mismatch error.
Schedule defaultmanual, External Push never runs on a cron. Values land when your external scheduler calls push_kri_value.
What it producesKRI rows under this source whose value, kri_status, and last_updated reflect the most recent push (or the historical timestamp you pass).
What it costsNothing beyond the bandwidth of the MCP call. No LLM, no inference, no extra storage tier.
AvailabilityNew in 2026.05. Catalog-KRI adoption via catalogSignal, and push_kri_value by kriId or by name for adopted rows, since 2026.10.

What problem this solves

Draxis enforces a strict invariant: every KRI must trace back to a real kri_source. That keeps the dashboard honest, a row nothing ever updates is dead data, and the system surfaces the staleness instead of hiding it. The three legitimate creation paths today are vendor connectors (Okta, CrowdStrike, etc.), GRC pulls (Vanta), and the AI Drop Zone for unstructured artifacts.

That covers most of the surface, but it leaves a real gap: metrics where you have custom data-fetching logic and just want Draxis to record the resulting number on a schedule. The AI Drop Zone can handle this via its webhook, but routing a number you already know through the LLM extractor is overhead. The MCP Client connector covers it if you're willing to host your own MCP server. Neither fits the "I have a small cron job, just take this number" case.

External Push is the fourth path. The admin creates a source from Settings → Integrations and mints a push token scoped to that source. The external scheduler calls create_external_push_kri once (idempotent, safe to call every run) and push_kri_value on every run. The KRI row still references a real kri_source.id, so the invariant holds; dashboard aggregations, breach pies, history charts, and audit logs all work unchanged.

The two MCP tools

create_external_push_kri

Idempotent UPSERT of a KRI under your external_push source. The binding is on (sourceId, name), so re-calling with the same arguments matches the existing row and returns created: false. Safe to call on every cron run.

{
  "sourceId":          "src-extpush-1747...",  // required
  "name":              "Build Failure Rate",   // required
  "measurementType":   "percentage",           // count | percentage | ratio | duration | currency | score | level | boolean
  "unit":              "%",                    // display-only
  "thresholdYellow":   5,                      // optional
  "thresholdRed":      10,                     // optional
  "higherIsBetter":    false,                  // optional, derived from catalogSignal when omitted
  "catalogSignal":     "MFA_ENFORCEMENT_RATE"  // optional, adopts the matching catalog KRI
}

Adopting catalog KRIs. Pass catalogSignal when your metric is one of the Draxis catalog signals (e.g. CRITICAL_VENDOR_SECURITY_ASSESSMENT_COMPLETION). If a catalog KRI already carries that signal, the call adopts it instead of minting a parallel row: the response has adopted: true, and the returned kriId is the canonical catalog id (kri-cat-…), not extpush-…. Your source is enrolled as a writer on it, and the pushed values land on the KRI that is already wired to controls, risks, and the CSF rollup. Without catalogSignal (or when no catalog KRI carries it) a fresh row is minted with the deterministic id extpush-<slug>-<hash>. Either way the response tells you the kriId, and the name you passed is remembered for this source, so push_kri_value works by name or by id.

Thresholds are optional. Omit them on the first run and the KRI starts “untuned”, the value flows through, but the green / yellow / red status is meaningless until an admin tunes the bands in Settings → KRIs. This is the right default for cron-job authors: encoding business policy (“what counts as bad?”) in your script is usually the wrong call, that’s a risk-owner decision.

Changing a KRI after it exists. create_external_push_kri is deliberately a no-op on an existing row, so re-running it with new thresholds changes nothing. To edit thresholds, polarity, measurement type, unit, the name, or the catalog-signal binding later, call update_kri from a tenant-wide token (not the push token); archive_kri retires a KRI you no longer measure and restore_kri brings it back. Binding a KRI you created without catalogSignal to a signal afterwards is the way to make it count toward CSF posture; if the catalog stub for that signal exists the row is folded onto it and the response reports the surviving kriId, while your scheduler’s push-by-name keeps working.

Coverage from counts, not device lists. You do not have to load every endpoint or employee into Draxis to get a credible coverage KRI. Pass populationMeasured (what the source can see, e.g. 1,180 endpoints reporting to EDR) and populationEstimated (the true fleet, e.g. 1,240 per MDM or procurement) on create_external_push_kri or update_kri, optionally with a coverageBasis note, and the KRI gets a coverage band and a confidence score from those two numbers alone. Push the counts on whatever schedule you push the value; the estimate must be at least the measured count.

push_kri_value

Record an observation. Target the KRI by kriId (the id create_external_push_kri returned, whether extpush-… or an adopted kri-cat-…) or by name (the same name you passed to create). At least one is required; kriId wins when both are given. Errors with an actionable message if the KRI doesn’t exist (“call create_external_push_kri first”), so a typo in name becomes a clear error instead of a silently-spawned duplicate.

{
  "sourceId":  "src-extpush-1747...",      // required
  "kriId":     "kri-cat-mfa-enforcement-rate", // preferred: the kriId returned by create
  "name":      "Build Failure Rate",       // alternative: same name as create
  "value":     3.2,                        // required, for boolean KRIs pass 1 or 0
  "timestamp": "2026-04-01T00:00:00Z"      // optional, ISO-8601, defaults to now
}

A push may only target KRIs enrolled under the given sourceId. Pushing by kriId to a KRI this source has never created or adopted is refused, which keeps a leaked push token’s blast radius bounded to its own source even though the id space is guessable.

In one transaction the tool: recomputes the KRI’s green/yellow/red status from its current thresholds, sets kri.value and kri.last_updated, advances kri_source.last_run_at + last_run_status='ok' (so the source counts as “live” in dashboard rollups), and writes an integration_run audit row that surfaces in the Integrations UI just like a scheduled connector run.

Historical backfill is first-class

The optional timestamp field is real backfill, not a cosmetic field. The KRI’s value-history trigger honors the timestamp you pass, so a backfilled point lands at its true position in the kri_value_history series. The history chart, sparkline, and trend math all reflect the right ordering.

Use cases:

  • Initial onboarding. Push the last 30 days of values one-shot so the trend chart isn’t a single dot on day one.
  • Catch-up after an outage. Your scheduler missed two days, push the two missed timestamps after recovery and the series fills in cleanly.
  • Reconciliation with a system of record. If you discover the source data was wrong for a past day, push a corrected value at the historical timestamp.

For ongoing measurements just omit timestamp, the server stamps the moment of the push.

Source-scoped tokens (per-job credentials)

A push token issued from the integration’s card carries a scope_to_source_id claim. The MCP server enforces it: such a token can only call create_external_push_kri and push_kri_value, and only against the source it’s bound to. Every other tool, list_risks, list_kris, get_program_disclosure, even submit_dropzone_artifact, refuses the token with a clear scope-mismatch error.

This is the principle of least privilege applied at the token boundary: one credential per cron job, blast radius bounded to one KRI source. If a push token ends up in your scheduler’s logs or a leaked CI dump, the worst an attacker can do is overwrite the values on KRIs under that one source. They cannot pivot to read your risk register or vendor data.

For ad-hoc debugging from a tenant-wide PAT, the push tools still work, the scope check only kicks in when the PAT itself is source-scoped. Admins don’t need to mint a second token to test from their main account.

Wire it into Draxis

  1. Open Settings → Integrations in your tenant.
  2. Click Add integration and pick External Push from the source type dropdown. The vendor auto-selects External Push (cron / CI / custom script).
  3. Name the integration after the system that’ll push to it (e.g. “Jira open critical bugs”, “GitHub Actions build health”, “Datadog SLO budget”). The form hides API Endpoint, Authentication, and Schedule, External Push doesn’t use any of them.
  4. Save. The integration appears in the list with an External Push panel attached.
  5. In the panel, click Mint Push Token, name the token after the job that’ll use it, and copy the plaintext immediately (it’s shown exactly once).
  6. Paste the token into your scheduler as a secret (GitHub Actions secret, Lambda env var, etc.).
  7. Author the script: call create_external_push_kri once at the top, then push_kri_value on every run. The panel ships with curl examples that have sourceId already substituted, copy & adapt.

Example: GitHub Actions, build-failure-rate KRI

One-shot workflow that computes the last week’s build-failure rate via the GitHub REST API and pushes it to Draxis:

name: Push build failure rate to Draxis
on:
  schedule: [{ cron: '0 6 * * *' }]   # daily at 06:00 UTC
  workflow_dispatch:

jobs:
  push:
    runs-on: ubuntu-latest
    steps:
      - name: Compute + push
        env:
          DRAXIS_PAT:    ${{ secrets.DRAXIS_PUSH_TOKEN }}
          DRAXIS_SOURCE: ${{ secrets.DRAXIS_SOURCE_ID }}
          GH_TOKEN:      ${{ secrets.GITHUB_TOKEN }}
        run: |
          set -euo pipefail
          # Pull last 7 days of workflow runs on this repo
          RUNS=$(gh api -X GET "repos/${{ github.repository }}/actions/runs" \
            -f per_page=100 -f created=">$(date -d '7 days ago' +%Y-%m-%d)")
          TOTAL=$(echo "$RUNS"  | jq '.total_count')
          FAILED=$(echo "$RUNS" | jq '[.workflow_runs[] | select(.conclusion == "failure")] | length')
          RATE=$(echo "scale=2; $FAILED * 100 / $TOTAL" | bc)

          # Idempotent create (safe every run)
          curl -fsS -X POST https://app.draxis.ai/api/mcp \
            -H "Authorization: Bearer $DRAXIS_PAT" \
            -H 'content-type: application/json' \
            -d "$(jq -n --arg src "$DRAXIS_SOURCE" '{
              jsonrpc: "2.0", id: 1, method: "tools/call",
              params: { name: "create_external_push_kri", arguments: {
                sourceId: $src, name: "Build Failure Rate 7d",
                measurementType: "percentage", unit: "%",
                thresholdYellow: 5, thresholdRed: 10
              }}}')"

          # Push the value
          curl -fsS -X POST https://app.draxis.ai/api/mcp \
            -H "Authorization: Bearer $DRAXIS_PAT" \
            -H 'content-type: application/json' \
            -d "$(jq -n --arg src "$DRAXIS_SOURCE" --argjson v "$RATE" '{
              jsonrpc: "2.0", id: 2, method: "tools/call",
              params: { name: "push_kri_value", arguments: {
                sourceId: $src, name: "Build Failure Rate 7d", value: $v
              }}}')"

Example: Jira JQL ticket counts (scheduled job)

If your data lives in Jira and a structured connector doesn’t cover the JQL you need, this is the canonical pattern: a scheduled job runs the JQL, computes the count, posts to Draxis. Pseudocode for the HTTP request body:

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "push_kri_value",
    "arguments": {
      "sourceId": "{{ $env.DRAXIS_SOURCE_ID }}",
      "name":     "Open Critical Bugs",
      "value":    {{ $json.issues.length }}
    }
  }
}

One scheduled job per KRI is the easiest mental model. The first run calls create_external_push_kri (you can guard that behind an “If first-run” check, or just call it on every run since the tool is idempotent).

What External Push is NOT

  • Not a manual-KRI escape hatch. You still need to provision a real kri_source from the admin UI before you can push. The PAT is bound to that source. You cannot “just create a KRI” from MCP without an admin first authorizing the source.
  • Not a substitute for vendor connectors. If a connector exists for your vendor (Okta, CrowdStrike, KnowBe4, …), use it. Connectors are richer, run on schedule, and handle pagination + retries + rate limits for you. External Push is for the long tail of custom metrics that no connector covers.
  • Not an AI extraction surface. Pushed values are ground truth, they bypass the AI proposal pipeline entirely. If you want AI review of unstructured evidence, route it through the AI Drop Zone instead.
  • Not a read API. A source-scoped push token cannot call list_kris, list_risks, or any other read tool. If you need to read tenant data from the same scheduler, mint a separate tenant-wide PAT, never repurpose a push token.
  • Not authorized to mutate other entities. Pushed values only set kri.value, kri_status, and last_updated on KRIs under the bound source. They do not change risk likelihood/impact, control effectiveness, or any other analyst-owned field.

Safety & limits

  • One PAT, one source. The scope_to_source_id on the token is checked against the sourceId argument of every push tool call. Mismatch → clear error, no write happens.
  • Source must be enabled. Disabling the source (the Wi-Fi toggle on the integration card) causes push calls to error with “source disabled”, the right escape hatch for an admin who wants to temporarily quarantine a misbehaving scheduler.
  • Audit on every call. Each push writes an MCP_TOOL_CALLED row to the tenant audit log with the token id, tool name, arguments, and IP. Every value change additionally lands in kri_value_history via a database trigger.
  • Idempotent create. create_external_push_kri uses INSERT…ON CONFLICT(id) DO NOTHING. Re-running it with the same (sourceId, name) is a no-op, no fields are silently overwritten.
  • Transactional push. The KRI update, source-health update, and integration_run audit row are written in a single transaction. A crash between steps rolls back cleanly, you never get a half-recorded push.

Quirks

  • Status defaults to green for untuned KRIs. Draxis doesn’t model an “unmeasured” status, instead the dashboard’s isKriLive check excludes KRIs from breach rollups until their source has had a successful run. After the first push, the KRI is “live”, but if you haven’t set thresholds yet the green / red badge isn’t meaningful. Set thresholds in Settings → KRIs so the color reflects reality.
  • Renaming the KRI breaks the slug. The (sourceId, slugified-name) pair is the binding. If you change name in your create_external_push_kri call, a new KRI is created instead of renaming the old one. Pick the name once and keep it; rename in the UI if you want a different display label (UI renames never affect push-by-name, the alias is keyed on the name you used). Or push by kriId and the name stops mattering after the first create.
  • Thresholds that can never trigger are refused. Status is two-band: for a higher-is-better KRI red means value < thresholdRed, for lower-is-better it means value > thresholdRed. So thresholdRed: 0 on a higher-is-better percentage can never fire (values are never below 0) and an 8% reading would sit at yellow forever. Since 2026.10 create_external_push_kri and update_kri reject such bands, inverted bands (red on the wrong side of yellow, usually a polarity mistake), and out-of-range values, with a message that says which line to move; legal-but-notable configs (the untuned 0/0 sentinel, an empty yellow band) come back as warnings. KRIs that were stored this way before the check carry a thresholdIssues list in list_kris / get_kri so you can find and fix them.
  • No bulk push. One value per call. For batch loads (initial onboarding of a year of history), loop over the values in your script, the server handles concurrent calls fine.
  • OAuth tokens can’t be source-scoped. scope_to_source_id is a PAT-only affordance, the OAuth path (Claude Desktop, ChatGPT Connectors) doesn’t carry the claim. Use a tenant-wide OAuth grant for human interactive sessions, source-scoped PATs for machine-to-machine push.

Troubleshooting

  • HTTP 401, the bearer token is wrong, revoked, expired, or its owning user is disabled. Mint a new push token from the integration’s card.
  • “PAT scope-to-source mismatch”, this push token is bound to a different source than the sourceId argument. Either fix the sourceId in your script or mint a token scoped to the right source.
  • “Tool ‘list_kris’ is not available for source-scoped PATs”, working as intended. Source-scoped tokens only work with the two push tools. Use a tenant-wide PAT (or your interactive session) for read access.
  • “KRI not found… call create_external_push_kri first”, the name doesn’t match an existing KRI under this source. Common cause: typo, or a previous call used a slightly different name (“Build Failure Rate” vs “Build Failure Rate (7d)” slugify to different ids). Call create with the exact name first; it’s idempotent. Or sidestep name matching entirely and push by the kriId that create returned.
  • “kri_source … is not a registered writer for KRI …”, you pushed by kriId to a KRI this source has never created or adopted. Call create_external_push_kri under the same sourceId first (with catalogSignal if it’s a catalog KRI); that enrolls the source as a writer.
  • Adopted a catalog KRI, then push by name said “not found”, fixed in 2026.10. Before that release, push_kri_value only resolved extpush-… ids, so an adopted kri-cat-… row could never take a push. Now the name is aliased to the adopted row at create time, and kriId is accepted directly. KRIs adopted before the fix resolve by name as long as the name you push matches the KRI’s current display name; otherwise re-run create (idempotent) to record the alias, or push by kriId.
  • KRI shows up but isn’t in dashboard rollups, your source’s last_run_status isn’t ok. The push tool sets this automatically, but if it’s blank the source predates the migration; one successful push will flip it.
  • Backfilled timestamp didn’t land in history, confirm your tenant booted at least once after the 2026-05 release (the trigger migration runs at boot). The boot log shows [migrate] Rewrote trigger kri_value_history_after_update on the first eligible boot.
  • Still stuck? Open a support ticket with the push token id (from Settings → API Tokens), the source id, and the KRI name, and we’ll dig in.