MCP Tools
Context Intelligence

trigger_health_audit_scan

Start a library-wide Context Intelligence health audit — an AI sweep of your context/reference items that produces findings. Uses team Studio Credits (estimated first), runs in the background.

Parameters

NameTypeRequiredDefaultDescription
team_idintegerYes—Team id to act in (from initialize instructions or get_current_user_info). Required on external MCP; optional in bound sessions.

Input Schema

{
  "type": "object",
  "required": [
    "team_id"
  ],
  "properties": {
    "team_id": {
      "type": "integer",
      "minimum": 1,
      "description": "Team id to act in (from initialize instructions or get_current_user_info). Required on external MCP; optional in bound sessions."
    }
  }
}

Output Schema

{
  "type": "object",
  "properties": {
    "team": {
      "type": "object",
      "required": [
        "id",
        "name"
      ],
      "properties": {
        "id": {
          "type": "integer"
        },
        "name": {
          "type": "string"
        }
      },
      "description": "Team this action applied to."
    },
    "status": {
      "type": "string",
      "description": "queued (or queued/running if an audit is already in progress on Studio Credits v2)."
    },
    "message": {
      "type": "string"
    },
    "scan_run_id": {
      "type": [
        "string",
        "null"
      ],
      "format": "uuid"
    }
  }
}

Instructions

Start a Context Intelligence health audit — a library-wide AI sweep of your team’s context/reference items that produces findings (stale content, contradictions, gaps) reviewable via list_ci_findings.

Use this when the user explicitly asks to check/audit their context health (“run a health check on our context”, “scan the library”). Do not trigger one unprompted — always confirm first.

⚠️ Cost + gating: the scan uses team Studio Credits. Marcora estimates the cost first and won't start a run the team's balance can't cover. Only one health audit can run at a time, and a cooldown applies after each completed run (the error message tells you when it can run again). A clean completion clears prior pending health_audit, web_freshness, and impact_scan findings (keeps content_grounding and non-pending statuses). Apply findings via apply_finding_fix.

The scan runs in the background: the response returns immediately with a scan_run_id, and findings land as the scan progresses — check list_ci_findings afterwards.

Errors:

  • ci_not_eligible (403) — Studio Credits or Context Intelligence availability check failed (JSON error body with reason + credit numbers).
  • A health check is already running. Please wait for it to finish.
  • Health check ran recently. You can run it again in about {time}.

Example prompts:

  • “Run a health check on our context library.”
  • “Audit our reference docs for anything stale or contradictory.”