mipiti-mcp
v0.119.0MCP server for Mipiti — AI-powered security posture platform
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
generate_threat_model Generate Threat Model
Generate a threat model from a feature description: trust boundaries, assets (Confidentiality, Integrity, Availability, Usage), capability-defined attackers, the control objective matrix and assumptions. A multi-step pipeline; progress is reported automatically. **Similar models:** where an existing model of the workspace overlaps the description, nothing is generated: ``{"similar_models": [{"id", "title", "reason"}], "suggestion"}``. Refine a candidate with ``refine_threat_model`` (usually right: it keeps controls and history), or retry with ``force=True`` once the operator confirms it is di…
| Parameter | Type | Description |
|---|---|---|
feature_description * | string | Description of the feature or system to threat model. Can be a few sentences or a detailed spec. |
server_version * | string | |
force | boolean | Skip the similar-model detection and always create a new model. Default False: the check fires unless the operator or agent has explicit reason to bypass it. |
model_id | string | Deprecated: use ``generate_from_behavioural_model``. With an empty ``feature_description`` it does the same; with a description it is refused (``resume_takes_no_description``). |
parent_id | Optional ID of an existing model to wire the new model under as a child on the recursive composition tree. The child then inherits the parent's topology and participates in composition (delta / inheri… | |
provenance_commit_sha | string | Commit SHA the description was gathered at (``code`` kind). |
provenance_kind | string | Where the description came from, one of ``code``, ``ticket``, ``document``, ``manual``, ``mixed``. Empty (default) records nothing. For an existing repository pass ``provenance_kind="code"`` with ``pr… |
provenance_ref | string | Branch or tag name at that commit (optional). |
provenance_repo_url | string | Repository URL the description was gathered from (``code`` kind). |
provenance_source_ref | string | Identifier of the ticket or document the description came from (``ticket`` / ``document`` kinds). |
provenance_source_url | string | URL of that ticket or document. |
generate_from_behavioural_model Generate From Behavioural Model
Generate the threat model of a model awaiting its first generation, from its behavioural model. Mutating; saves the model's next version. A generation where the platform models what the system does saves the model first (``generate_threat_model`` answers ``extracting`` or ``needs_answers``). Once ``get_behavioural_model`` reports ``generation_ready: true``, call this with its ``model_id``: the inventory steps run from the stored description and the answers to its questions. It takes no description. Progress is reported automatically; it takes minutes. Answer: as ``generate_threat_model``'s,…
| Parameter | Type | Description |
|---|---|---|
model_id * | string | The model, as ``generate_threat_model`` returned it. |
server_version * | string |
refine_threat_model Refine Threat Model
Refine an existing threat model based on an instruction. Updates the model's assets, attackers, trust boundaries, and control objectives based on the instruction. Creates a new version. Progress is reported automatically. Refine CANNOT silently replace an entity's identity under a stable ID or silently drop an entity. Behavior: - **Preserved entities** where the LLM proposed an identity- bearing rewrite (name / description / security_properties on assets; capability / archetype / position on attackers) run through a semantic-preservation guard. Rewrites classified as ``replace`` or…
| Parameter | Type | Description |
|---|---|---|
instruction * | string | What to change, e.g. "Add CSRF attack vectors". |
model_id * | string | ID of the threat model to refine. |
server_version * | string |
query_threat_model Query Threat Model
Ask a natural-language question about an existing threat model. Read-only; no side effects (no new version, no mutation). Uses AI to answer questions grounded in the model's assets, attackers, control objectives, assumptions, and current security posture, returning ``{model_id, answer}`` where ``answer`` is prose. Use this for interpretation or summary questions ("what are the biggest gaps?", "which attackers target the token store?"). Do NOT use it to change the model — use ``refine_threat_model`` for that — and prefer ``get_threat_model`` / ``assess_model`` when you need structured dat…
| Parameter | Type | Description |
|---|---|---|
model_id * | string | ID of the threat model to query. |
question * | string | The natural-language question to ask. |
server_version * | string |
list_threat_models List Threat Models
List saved threat models in the current workspace. Read-only; no side effects. Returns ``{items: [{id, title, version, created_at, entities_flagged?, ...}], count}``; ``entities_flagged`` counts the assets and attackers the quality check flags (not the review queue's items, which ``get_review_queue`` lists). Use this to discover model IDs to pass to other tools, or for a portfolio overview.
| Parameter | Type | Description |
|---|---|---|
server_version * | string | |
include_assessment_summary | boolean | If True, include an `assessment_summary` object per model (counts of mitigated / at_risk / unassessed control objectives plus a human-readable `message`). Use for aggregate posture queries across the… |
source | string | Filter by the system that created each model. One of "web", "mcp", "jira", "api". Omit (default "") to list all models regardless of source. |
update_threat_model Update Threat Model
Change a threat model's metadata: its name, its parent, where its description came from. Mutating; pass only what changes. - ``name`` (1-120 chars) renames it; no new version. Titles are unique within a workspace, case-insensitive (409 on a clash). - ``parent_id`` wires it under a parent on the recursive composition tree, so it inherits the parent's topology and objectives; ``clear_parent=True`` makes it a tree root. Cycles (409) and chains past the platform's maximum depth (400) are refused. No new version. - ``provenance_kind`` (``code``, ``ticket``, ``document``, ``manual``, ``mi…
| Parameter | Type | Description |
|---|---|---|
model_id * | string | |
server_version * | string | |
clear_parent | boolean | |
name | ||
parent_id | ||
provenance_commit_sha | string | |
provenance_kind | string | |
provenance_ref | string | |
provenance_repo_url | string | |
provenance_source_ref | string | |
provenance_source_url | string |
declare_foundation Declare Foundation
Mark a model as a shared foundation that advertises providable controls. Mutating: records this model as a foundation and stores its advertised controls; other models can then delegate to them (see ``attach_foundation``). A foundation is a shared service (auth, logging, a shared datastore) whose controls other models can rely on. Each entry in ``provides`` advertises one of THIS model's controls as providable: ``{"control_id": "CTRL-07", "capability_label": "Validates session tokens", "description": "..."}``. A capability always advertises a control (a proven mechanism), never an objective.
| Parameter | Type | Description |
|---|---|---|
model_id * | string | ID of the model to declare as a foundation. |
provides * | array | List of advertised-control dicts. ``control_id`` is required per entry; ``capability_label`` and ``description`` describe what the control provides to consumers. |
server_version * | string | |
visibility | string | Who may delegate to this foundation. "workspace" (default) makes it discoverable to every model in the workspace; "explicit" limits it to models explicitly attached. |
list_reliance List Reliance
List a model's cross-model dependency edges, in both directions. Read-only; no side effects. Returns ``{model_id, as_consumer: [...], as_provider: [...]}``. Consumer edges are this model's declared delegations / reliances on other models' controls; provider edges are other models relying on this one (its blast radius if its controls change). Use this to inspect existing dependencies before creating or deleting edges (``manage_reliance`` / ``attach_foundation``), or to understand what breaks if this model's controls change.
| Parameter | Type | Description |
|---|---|---|
model_id * | string | ID of the model to inspect. |
server_version * | string |
manage_reliance Manage Reliance
Create, confirm or delete one cross-model reliance edge. Mutating. ``action="create"`` declares that ``model_id`` relies on a provider control (the target is ALWAYS a control, so credit ends at a proven mechanism). ``mode`` is ``delegated`` (this model does not implement the objective; pass ``source_objective_id``) or ``relied_upon`` (this model's own control depends on the provider's; pass ``source_control_id``). The provider must be in the same workspace. The edge enters ``draft``, runs LLM semantic validation, and carries no credit until confirmed. Returns the edge. ``action="confirm"`` p…
| Parameter | Type | Description |
|---|---|---|
action * | string | |
server_version * | string | |
accept_partial_as_relied_upon | boolean | |
edge_id | string | |
mode | string | |
model_id | string | |
provider_control_id | string | |
provider_model_id | string | |
source_control_id | string | |
source_objective_id | string |
attach_foundation Attach Foundation
Delegate this model's objectives to a foundation's controls, in bulk. Without ``selections`` it is read-only: it returns candidate (objective ↔ provider control) pairs with a match score, and nothing is created or credited. Show them to the operator. With ``selections`` — a list of ``{"source_objective_id": ..., "provider_control_id": ...}``, typically the confirmed subset of those candidates — it is mutating: each becomes a ``delegated`` draft edge that runs LLM validation and carries no credit until confirmed with ``manage_reliance(action="confirm")``. Returns ``{created, failed}``.
| Parameter | Type | Description |
|---|---|---|
foundation_model_id * | string | the foundation to delegate to. |
model_id * | string | the consumer model. |
server_version * | string | |
selections | the pairs to delegate; omit to get the candidates. |
delete_threat_model Delete Threat Model
Delete a threat model and all associated data. Destructive and permanent — cannot be undone. Mutating: removes the model along with every version, its controls, assertions, findings, attestations, and tag/reliance memberships. Reliance edges from other models that pointed at this one are invalidated, which can move those consumers' posture. Confirm intent before calling. To keep a copy first, use ``export_report (scope="model", format="archive")`` (a self-contained, re-importable JSON archive). Returns ``{deleted: True, model_id}``.
| Parameter | Type | Description |
|---|---|---|
model_id * | string | ID of the threat model to delete. |
server_version * | string |
get_threat_model Get Threat Model
Get a threat model by ID: its trust boundaries, assets, attackers, assumptions and components. Read-only. The answers to its questions are counted (``clarification_count``) and left out unless ``include_clarifications=True``, which pages them (``clarifications_offset``, ``clarifications_limit``: default 50, at most 200; ``clarifications_next_offset`` null at the end). A read over 200,000 characters is cut, and ``cuts`` says what and how to read it: the objectives, then the clarifications, then each entity collection, largest first, kept as rows that name its entities. ``include_inventory_com…
| Parameter | Type | Description |
|---|---|---|
model_id * | string | ID of the threat model. |
server_version * | string | |
clarifications_limit | integer | Answers per page. |
clarifications_offset | integer | The first answer of the page. |
include_clarifications | boolean | Include a page of the answers to the model's questions (default False). |
include_cos | boolean | Include control objectives inline (default False: the answer carries no ``control_objectives`` key; read them with ``get_control_objectives``). |
include_inventory_completeness | boolean | Add the completeness record and its ``grounding_gaps`` (default False). |
version | Optional specific version number. Defaults to latest. |
import_threat_model_archive Import Threat Model Archive
Import a JSON audit archive (a file ``export_report (scope="model", format="archive")`` produced) into a target workspace. Its contents never pass through this call: they must arrive exactly, and copied as text they would fill your context and could change. - Locally run package: name the archive with ``file``, a file in the exports folder (the ``saved_to`` path ``export_report(save=True)`` gave, or that path relative to the folder). This server reads it from disk and uploads it; a path outside the folder is refused. - Hosted server, or no ``file``: nothing is imported. The answer's `…
| Parameter | Type | Description |
|---|---|---|
server_version * | string | |
workspace_id * | string | Target workspace to import into. |
file | string | The archive in the exports folder (locally run package only). |
get_control_generation_status Get Control Generation Status
A model's proposed control build and its last started one. Read-only. A build runs only when started. ``proposal`` (or null): ``mode``, ``objective_count``, ``estimated_credits`` (``estimate_basis`` history|bootstrap), the ``model_version`` / ``set_revision`` / ``scope_revision`` ``start_control_build`` names, and what to review: ``flagged_entities``, ``pending_attestations`` (attestations that would remove objectives from the build); ``flags_evaluated`` / ``attestations_evaluated`` false when not computed. Poll until ``terminal``; ``hint`` names the next act. ``status``: ``queued | generati…
| Parameter | Type | Description |
|---|---|---|
model_id * | string | |
server_version * | string |
pause_control_generation Pause Control Generation
Pause a model's background control generation. Mutating. Use when the user asks to stop a build — for example one started by mistake — or before deleting a model whose controls are still being built. A running build stops at its next step (``status`` ``pausing``, then ``paused``); a queued or waiting one is paused at once. Everything already done is kept in the build's staging copy; nothing is published, nothing new is started or billed, and nothing resumes it except ``resume_control_generation``. A paused build still holds the model: to drop it instead, call ``discard_control_build`` onc…
| Parameter | Type | Description |
|---|---|---|
model_id * | string | ID of the threat model whose control generation to pause. |
server_version * | string |
resume_control_generation Resume Control Generation
Resume control generation that was paused, or retry one that stopped before finishing. Mutating. Use when ``get_control_generation_status`` returns ``status: "paused"`` (someone paused it) or ``status: "blocked"`` (``blocked.code`` ``dependency_unavailable`` or ``analysis_incomplete``). A paused run resumes at once. For a blocked one the platform checks the services it depends on first, so a retry while one is still down costs nothing and changes nothing. Returns one of: - ``{resumed: true, status: "queued", status_detail}`` — the run resumes where it stopped (only the unfinished work, b…
| Parameter | Type | Description |
|---|---|---|
model_id * | string | ID of the threat model whose paused control generation to resume. |
server_version * | string |
strengthen_controls Strengthen Controls
Strengthen a model's controls: work on the objectives whose mitigation groups the background judge found do not cover them (the ``uncovered`` and ``undecided`` of ``get_control_generation_status``'s ``diagnosis``, less ``uncovered_not_owed`` / ``undecided_not_owed``: those are out of scope or decisively unreachable, owe nothing and are never worked on). Mutating only with ``confirm_estimate=True``; consumes credits then. ``not_judged`` objectives have nothing to strengthen from: judge them first with ``judge_objectives``. 1. Call with ``confirm_estimate=False`` (the default): nothing starts o…
| Parameter | Type | Description |
|---|---|---|
model_id * | string | ID of the threat model. |
server_version * | string | |
co_ids | Optional comma-separated objective IDs, of those diagnosed uncovered or undecided; omit for all. | |
confirm_estimate | boolean | False (default) estimates; True starts the run. |
model_version | With ``confirm_estimate=True``: the estimate's value. | |
set_revision | With ``confirm_estimate=True``: the estimate's value. |
judge_objectives Judge Objectives
Have judged every objective whose mitigation group has no judgement for its current controls and none queued (the diagnosis's ``not_judged``, or objectives reading ``awaiting_judgement``). Mutating only with ``confirm_estimate=True``; may consume credits then. Adding or implementing controls does not move such an objective; a judgement does. ``judging`` objectives are already queued: wait for them. 1. Call with ``confirm_estimate=False`` (the default): nothing is queued or charged; the answer carries ``diagnosis``, ``scope``, ``ungrouped`` and ``estimate`` (``credits``, ``objectives``,…
| Parameter | Type | Description |
|---|---|---|
model_id * | string | ID of the threat model. |
server_version * | string | |
co_ids | Optional comma-separated objective IDs; omit for every objective with no judgement and none queued. | |
confirm_estimate | boolean | False (default) estimates; True queues. |
regenerate_controls Regenerate Controls
Propose a regeneration of the model's controls. Starts nothing. A regeneration re-authors controls from the current COs; its publish creates the next model version. Controls whose descriptions survive unchanged KEEP their implementation status, evidence, notes, assertions, and Jira / compliance mappings. Controls whose descriptions change or disappear are soft-deleted (still queryable via ``get_controls(include_deleted=True)``). When ``co_ids`` is given, only those COs' controls are regenerated — all other controls are left as-is. This tool records the regeneration as the model's PROPOSED…
| Parameter | Type | Description |
|---|---|---|
model_id * | string | ID of the threat model. |
server_version * | string | |
batch_size | integer | COs per batch in batch mode (default 15). Smaller = more accurate and more granular progress, but more LLM calls. |
co_ids | Optional comma-separated CO IDs to regenerate (e.g. "CO1,CO5"). Omit to regenerate all controls. | |
mode | string | "batch" (default) or "per_co" (most thorough — one LLM call per CO). |
start_control_build Start Control Build
Start the model's proposed control build, or part of it. Mutating only with ``confirm_estimate=True``; consumes credits then. Generating or refining the model, editing an entity and ``regenerate_controls`` each PROPOSE a build (shown as ``proposal`` by ``get_control_generation_status``); only this starts one. Its review also proposes every objective in scope with no control. 1. ``confirm_estimate=False`` (default): nothing starts or is charged; returns ``{started: false, proposal, message}`` with a fresh ``estimated_credits`` and the ``model_version``, ``set_revision`` and ``scope_r…
| Parameter | Type | Description |
|---|---|---|
model_id * | string | ID of the threat model. |
server_version * | string | |
confirm_estimate | boolean | False (default) returns the proposal and its estimate and starts nothing; True starts the build. |
model_version | With ``confirm_estimate=True``: the proposal's ``model_version``. | |
objective_ids | string | Comma-separated objective IDs (e.g. ``"CO-1,CO-5"``) to build now, of those the proposal would build. Empty (the default): the whole proposal. |
scope_revision | With ``confirm_estimate=True``: the proposal's ``scope_revision``. | |
set_revision | With ``confirm_estimate=True``: the proposal's ``set_revision``. | |
strengthen | boolean | True to strengthen in the same start, within the cap the estimate states. False (the default): the build alone. |
discard_control_build Discard Control Build
Discard a model's held control build. Mutating. A build that is ``queued``, ``deferred``, ``paused`` or ``blocked`` holds the model without running. Discarding it drops everything it staged — the model keeps its published controls exactly as they were — releases the model, and proposes the build again so it can be started later. The credits it already consumed are not returned. A running build must be paused first (``pause_control_generation``, then wait for ``paused``). Returns one of: - ``{discarded: true, model_id, status: "discarded", proposal, status_detail}``. - ``{discarded: fal…
| Parameter | Type | Description |
|---|---|---|
model_id * | string | ID of the threat model whose held build to discard. |
server_version * | string |
list_control_revisions List Control Revisions
List every change to a model version's set of controls. Read-only. Each write to a version's published controls — a build's publish, an import, an edit, a deletion, an undo — is a set revision with its author. Returns ``{model_id, model_version, latest_version, discarded, revisions, undo_target}``; each revision carries ``revision``, ``job_id`` (the build that wrote it, if any), ``started_by``, ``started_at``, ``controls`` (the ids it touched), ``undo_of`` (the revision it undid, for an undo) and ``undone_by`` / ``undone_at``. ``undo_target`` is the revision ``undo_model_change(target="co…
| Parameter | Type | Description |
|---|---|---|
model_id * | string | ID of the threat model. |
server_version * | string | |
version | integer | Model version to read (0 = the latest live version). |
undo_model_change Undo Model Change
Undo the latest change to a model's controls, or revert its latest version. Mutating. ``target="controls"`` restores exactly what the latest set revision of the latest version replaced (``list_control_revisions``' ``undo_target``). Changes are undone latest first, one per call; the undo is itself recorded, and the next undo goes to the change before it. There is no redo. Verdicts the undo returns to are served again rather than re-judged. Answers ``{applied: true, model_id, model_version, undone, revision, controls}``: ``undone`` is the revision undone, ``revision`` the one the undo recorded,…
| Parameter | Type | Description |
|---|---|---|
model_id * | string | |
server_version * | string | |
target * | string |
update_control_status Update Control Status
Update the implementation status of a security control. Mutating. Sets the control's status to "implemented" or "not_implemented". Marking a control "implemented" REQUIRES at least one assertion on the control — check its ``assertion_count`` (via ``get_controls``) first and submit assertions with ``submit_assertions`` if it is zero, or the call is rejected.
| Parameter | Type | Description |
|---|---|---|
control_id * | string | ID of the control to update (e.g. "CTRL-01"). |
model_id * | string | ID of the threat model the control belongs to. |
server_version * | string | |
status * | string | New status — "implemented" or "not_implemented". |
implementation_notes | string | Optional free-text notes recorded with the status change. |
refine_control Refine Control
Refine a control's description with AI-gated CO sufficiency check. Two modes: - Provide `description`: proposes a new description directly. - Provide `codebase_findings`: the platform proposes a description based on existing code that may already satisfy the control. - Both can be provided: the platform evaluates the proposed description with the codebase findings as context. The AI evaluates whether the mitigation group still collectively satisfies all mapped control objectives. If rejected, returns {accepted: false, reason, per_co} with per-CO reasoning. A refinement is rejected when…
| Parameter | Type | Description |
|---|---|---|
control_id * | string | ID of the control to refine (e.g., "CTRL-03"). |
model_id * | string | ID of the threat model. |
server_version * | string | |
codebase_findings | string | Description of existing code that may already satisfy this control's objective (optional). When provided without description, the platform proposes a description. |
description | string | Proposed new control description (optional if codebase_findings provided). |
justification | string | Why this refinement is appropriate (10 to 2000 characters). |
remap_control Remap Control
Mechanical, non-AI-gated remap of a control's CO mappings. Distinct from `refine_control` (AI-gated description edit) and `set_mitigation_groups` (AI-gated CO-centric group authoring). Use `remap_control` when the operator already knows the correct co_ids and just needs to persist the mapping change — e.g., restoring mappings after an asset/attacker edit left the control with stale or orphaned CO references. No LLM evaluation runs. Rejects target co_ids that do not exist on the model or are tombstoned (the pair was removed in a later version) — map to live COs only.
| Parameter | Type | Description |
|---|---|---|
change_reason * | string | Why this remapping is appropriate (min 10 chars). Captured in the control's version history. |
co_ids * | string | Comma-separated list of target CO IDs (e.g., "CO1,CO2,CO3"). Must include at least one CO. |
control_id * | string | ID of the control to remap (e.g., "CTRL-03"). |
model_id * | string | ID of the threat model. |
server_version * | string |
apply_control_changeset Apply Control Changeset
Apply a batch of control operations atomically as ONE transaction. Use this to reorganize a model's controls in a single step — for example to deduplicate controls (remap several onto the right objectives and delete the redundant ones at once), instead of many separate calls. All operations commit together or not at all. Mapping-only: remap/delete/set_groups change objective mappings and retire controls but never re-author a control's description, so a kept or reused control keeps its status, evidence, and assertions. The orphan guard is evaluated on the FINAL state of the batch, so a dele…
| Parameter | Type | Description |
|---|---|---|
change_reason * | string | Why this reorganization is appropriate (min 10 chars). Recorded on every affected control's version history. |
model_id * | string | ID of the threat model. |
ops * | string | JSON array of operation objects. Each object has an "op" of "remap", "delete", "add", or "set_groups": - remap: {"op": "remap", "control_id": "CTRL-03", "co_ids": ["CO1", "CO2"… |
server_version * | string |
model_coherence_report Model Coherence Report
How coherent a model's structure is: its component bindings, the repos its controls' assertions name, and whether every CO is structurally reachable. Read-only. Pass ``co_id`` to keep only the findings about that CO (404 if it does not exist). Each finding carries ``type``, ``severity``, a ``message`` and the ids it concerns, so its fix can be called directly: - ``control_component_unknown``, ``assertion_repo_orphan``, ``control_unscoped_with_scoped_assertions``: ``assign_to_components(target_type="control")``. ``assertion_repo_mismatch``: rebind the assertion or rescope the control.…
| Parameter | Type | Description |
|---|---|---|
model_id * | string | |
server_version * | string | |
co_id | string |
get_composition Get Composition
A model's composed view: its own entities with everything inherited from its ancestors on the recursive tree. Read-only. ``view`` selects what is returned: - ``overview`` (default, ~1-2KB, read it first): ``{model_id, model_version, flag_enabled, tree: {parent_id, ancestor_chain, depth, child_ids}, counts: {entities, control_objectives, reconciliation_candidates}, warnings}``. - ``entities``: the effective entity set keyed by kind (trust boundaries, components, assets, attackers, attack paths), each entry ``{kind, qualified_id, owner_model_id, owner_title, origin, entity}``. Pagi…
| Parameter | Type | Description |
|---|---|---|
model_id * | string | |
server_version * | string | |
kind | ||
origin | ||
page | integer | |
page_size | integer | |
view | string |
decide_reconciliation_candidate Decide Reconciliation Candidate
Decide a reconciliation candidate from ``list_reconciliation_candidates``. Mutating. ``kind`` is ``assets``, ``attackers`` or ``components``; ``own_qid`` / ``inherited_qid`` are the pair's qualified ids (``"child:A1"``, ``"parent:A1"``). - ``decision="apply"`` records that the descendant's own entity IS the inherited one: the own entity stays in the model and is left out of its composed view, so the inherited entity is canonical and credit keys on it. The record is dropped when the pair stops matching (an edit, a re-parent). A ``heuristic``-tier candidate is refused unless ``confir…
| Parameter | Type | Description |
|---|---|---|
decision * | string | |
model_id * | string | |
server_version * | string | |
confirm_heuristic | boolean | |
inherited_qid | string | |
kind | string | |
own_qid | string | |
rejection_id | string |
lift_composition_entity Lift Composition Entity
Promote a shared-anchor entity from two sibling descendants to their lowest common ancestor. Mutates state across THREE models. The operator has confirmed (via the composition lift-candidate view) that the entity ``local_id_a`` on ``descendant_a_id`` and the entity ``local_id_b`` on ``descendant_b_id`` are the same logical thing and should be modeled once on the LCA. The route's ``model_id`` is the operator's current context model — typically the LCA, but the server accepts any ancestor of both descendants. Conflict resolution. The server re-detects field-level and attached-state conflicts…
| Parameter | Type | Description |
|---|---|---|
descendant_a_id * | string | First source descendant model id. |
descendant_b_id * | string | Second source descendant model id. |
kind * | string | Entity kind — one of ``"assets"``, ``"attackers"``, ``"components"``. |
lca_model_id * | string | Target ancestor model id (the LCA, or any ancestor higher up the chain). |
local_id_a * | string | Local id of the entity on ``descendant_a_id``. |
local_id_b * | string | Local id of the entity on ``descendant_b_id``. |
model_id * | string | Operator's context model — the model whose composition view surfaced the candidate. Treated as a route anchor only; doesn't have to be the LCA. |
server_version * | string | |
acknowledged_third_party_subtrees | Optional list of subtree roots the operator has acknowledged as in-scope for the lift. | |
attached_state_resolutions | Optional per-state-key resolution map (e.g. ``{"state:assertions/AS3": "keep_b"}``). | |
field_resolutions | Optional per-field resolution map (e.g. ``{"description": "keep_both", "tags": "keep_a"}``). | |
lca_descendant_ids | Optional snapshot of the LCA's descendant set used by the over-application gate. Omit to let the server compute it via BFS. | |
skip_overapplication_gate | boolean | When True, bypass the gate after explicit operator confirmation. Default False. |
split_composition_entity Split Composition Entity
Push an ancestor-owned entity down to one or more descendants and soft-delete the ancestor's copy. Mutates state across the ancestor + every target descendant. Inverse of ``lift_composition_entity``. Use when an entity that currently lives on an ancestor is in fact descendant-specific and should be modeled separately per descendant — the operator chooses which descendants take a copy. A new local id is minted on each target; attached state on the ancestor's entity (assertions, jira mappings, risk acceptances, etc.) is duplicated to every target. The route's ``model_id`` IS the ancestor (th…
| Parameter | Type | Description |
|---|---|---|
ancestor_local_id * | string | Local id of the entity on the ancestor. |
kind * | string | Entity kind — one of ``"assets"``, ``"attackers"``, ``"components"``. |
model_id * | string | Ancestor model id — the entity to split lives here. |
server_version * | string | |
target_descendants * | array | Non-empty list of descendant model ids that should each take a copy. |
get_mitigation_groups Get Mitigation Groups
Get the current mitigation group structure for a control objective. Returns the grouped view of controls for this CO with details (id, description, status) for each control: - groups: numbered groups (within=AND, across=OR) - defense_in_depth: tracked but not required for mitigation - unmapped: model controls not mapped to this CO (available for assignment) Use cases: - Before set_mitigation_groups to see the current structure - When reviewing a CO's assessment to understand why it is at_risk or mitigated - When deciding which unmapped controls to assign to a CO
| Parameter | Type | Description |
|---|---|---|
co_id * | string | ID of the control objective (e.g., "CO5"). |
model_id * | string | ID of the threat model. |
server_version * | string |
set_mitigation_groups Set Mitigation Groups
Declaratively set the mitigation-group structure for a control objective. Mutating; runs as a polled background job (an LLM sufficiency check evaluates whether the new structure satisfies the CO) and returns once complete. Replaces ALL mitigation-group assignments for this CO. Call ``get_mitigation_groups`` first to see the current structure and the unmapped controls available for assignment. Mitigation groups define alternative paths to satisfy a CO: - Within a group: AND — all controls must be implemented. - Across groups: OR — any one complete group mitigates the CO. - Defense-in-dept…
| Parameter | Type | Description |
|---|---|---|
co_id * | string | ID of the control objective (e.g., "CO5"). |
groups * | string | JSON object mapping group numbers to control-ID lists. Example: '{"1": ["CTRL-01", "CTRL-02"], "2": ["CTRL-03"]}'. |
model_id * | string | ID of the threat model. |
server_version * | string | |
defense_in_depth | string | Comma-separated control IDs tracked as defense-in-depth (not required for mitigation). Example: "CTRL-04,CTRL-05". |
justification | string | Why this group structure is appropriate (10 to 2000 characters). The gate weighs it alongside the objective and the controls' own descriptions, so state the reasoning, not evidence. |
edit_evidence Edit Evidence
Attach or detach an auxiliary evidence item (doc, link, artifact reference) on a control. Mutating. Evidence is contextual metadata only: it does NOT count toward a control's implementation status, and removing it changes neither the status nor any assertion. Only assertions prove controls.
| Parameter | Type | Description |
|---|---|---|
action * | string | "add" attaches an item; "remove" detaches one. |
control_id * | string | ID of the control. |
model_id * | string | ID of the threat model. |
server_version * | string | |
evidence_index | integer | remove — zero-based position of the item in the control's ``evidence`` array (read it with ``get_controls(control_id=...)``; default 0, the first item). |
label | string | add — human-readable description of the item (required). |
type | string | add — "code", "test", "config", "document" or "link" (default "code"). |
url | string | add — optional file path or URL pointing at the artifact. |
import_controls Import Controls
Import existing security controls into a threat model. Accepts structured JSON or free-text. Controls are auto-mapped to COs and deduplicated against existing ones. The parse/map/dedup runs as a background job (polled for progress), then — because this mutates the model — you are asked to confirm before the controls are saved. The saved controls are added to the model's current controls as one change (undoable with ``undo_model_change``); no model version is created, and it is refused while a control build holds the model. Nothing runs for them unprompted: the result's ``awaiting_judgeme…
| Parameter | Type | Description |
|---|---|---|
model_id * | string | ID of the threat model. |
server_version * | string | |
auto_map | boolean | Auto-map controls to COs using LLM (default: True). |
controls_json | string | JSON array of {description, co_ids?, framework_refs?}. |
free_text | string | Free-text controls (narrative/CSV/bullets). |
source_label | string | Origin label (e.g., "ISO 27001"). |
judge_imported_controls Judge Imported Controls
Have the imported controls awaiting their judgement judged. Mutating only with ``confirm_estimate=True``; may consume credits then. Controls saved by ``import_controls`` are not judged unprompted: the mitigation groups they join credit nothing until this runs. It judges every objective those controls join, priced and charged as ``judge_objectives`` prices and charges them. 1. Call with ``confirm_estimate=False`` (the default). Nothing is queued and nothing is charged; the answer carries ``awaiting_judgement`` (the control ids), ``co_ids`` (the objectives they join), ``scope``, ``ung…
| Parameter | Type | Description |
|---|---|---|
model_id * | string | ID of the threat model. |
server_version * | string | |
confirm_estimate | boolean | False (default) returns the estimate and queues nothing; True queues the judgements. |
delete_control Delete Control
Soft-delete a security control, optionally with a justification. Destructive (mutating): the control is retired, not permanently erased. Blocks with HTTP 409 when the control is the ONLY control covering any control objective — removing it would leave that CO uncovered. Add a replacement control (or refine the threat model) before deleting.
| Parameter | Type | Description |
|---|---|---|
control_id * | string | ID of the control to delete. |
model_id * | string | ID of the threat model. |
server_version * | string | |
reason | string | Optional justification recorded in the audit trail (recommended). |
check_control_gaps Check Control Gaps
Analyze control coverage and surface control objectives that lack sufficient controls. Read-only (does not mutate the model); runs as a polled background job and uses LLM reasoning. Complements the deterministic ``assess_model`` (which scores each CO's mitigated / at_risk / unassessed status from control implementation state) by reasoning about which COs are under-covered and where new controls are needed. Use this to decide what controls to add; use ``assess_model`` to score the current state.
| Parameter | Type | Description |
|---|---|---|
model_id * | string | ID of the threat model. |
server_version * | string |
assess_model Assess Model
Run the deterministic assurance assessment over a threat model. Read-only — no LLM calls, no mutation. Evaluates each control objective from its controls' implementation status and returns summary counts (mitigated / at_risk / unassessed) plus progressive metrics (defined / implemented / verified). For LLM-based reasoning about *which* COs are under-covered and what controls to add, use ``check_control_gaps`` instead. Use summary_only=True to get just the counts without per-CO assessments. Paging: a read with ``limit`` that leaves pages beyond its own names a ``snapshot`` of the whole ass…
| Parameter | Type | Description |
|---|---|---|
model_id * | string | ID of the threat model to assess. |
server_version * | string | |
limit | integer | Max control objectives to return (0 = all). |
offset | integer | Skip the first N control objectives. |
snapshot | string | The ``snapshot`` an earlier page named; empty (default) evaluates the model now. |
status | Optional filter — "mitigated", "at_risk", or "unassessed". | |
summary_only | boolean | If True, return only summary counts (no per-CO details). |
get_review_queue Get Review Queue
Returns the workspace's review queue: what needs a decision or a re-check, ranked. Read-only; no side effects. Each row carries an ``item_type``, one of ``escalation`` (a judgment an agent was refused and parked for a person), ``proposal`` (an open change of scope or design, or an ``assumption`` proposal: a precondition a strengthening run found only the environment can meet), ``unaccepted_assumption`` (an assumption something depends on that is not accepted — never attested, lapsed, or its text changed since it was attested — with the controls and objectives that wait on it), ``open_assu…
| Parameter | Type | Description |
|---|---|---|
server_version * | string |
add_asset Add Asset
Add a new asset to a threat model. Creates a new version. **Authoring contract**: name the *data or resource being protected* and the security property at stake (Confidentiality / Integrity / Availability / Usage), not a mechanism or control ("per-organization key-wrapping material", not "KMS encryption"). An asset phrased as a mechanism is flagged with a ``quality_warning`` and yields under-specified control objectives. An asset that does not apply is recorded with a non-applicability assumption or ``create_co_disposition``; there is no status to set. The platform reasons the factor decompo…
| Parameter | Type | Description |
|---|---|---|
model_id * | string | ID of the threat model. |
name * | string | Asset name (required). |
server_version * | string | |
component_ids | Comma-separated component IDs scoping the asset (e.g., "CMP1,CMP2"). Empty / omitted = unscoped. Validated against components declared on the model. | |
description | string | Optional description (recommended — feeds the factor-reasoning prompt). |
notes | string | Optional notes. |
security_properties | Comma-separated properties, e.g. "C,I,A" (default: "C"). |
edit_asset Edit Asset
Edit an existing asset. Only provided fields changed. When changing identity fields, hold to the asset authoring contract: name the *data/resource protected* and its security property, not a mechanism — otherwise the result is flagged with a ``quality_warning`` (see ``add_asset``). There is no status field to set. The composed ``impact`` is server-derived from the factor fields; there is no way to set it directly. To change the rating, set factor values (the platform composes the new rating) and supply ``change_reason`` documenting the operator override of the LLM-generated factors. The re…
| Parameter | Type | Description |
|---|---|---|
asset_id * | string | ID of the asset (e.g., "A1"). |
model_id * | string | ID of the threat model. |
server_version * | string | |
availability_subscore | "None" | "Low" | "High". | |
blast_radius | "Isolated" | "Multiplicative" | "Cascading". | |
change_reason | Required when any factor field is supplied — documents the operator override of LLM-generated factors for the audit trail. | |
confidentiality_subscore | "None" | "Low" | "High". | |
description | New description (optional). | |
evidence | string | JSON array of the citations this judgment rests on (at most 20, each at most 2000 characters): {"kind": "code", "path", "lines"?, "commit"?}, {"kind": "url", "url", "lines"?} or {"kind": "quote", "sou… |
impact_rationale | New rationale (optional). | |
integrity_subscore | "None" | "Low" | "High". | |
name | New name (optional). | |
notes | New notes (optional). | |
recoverability | "Trivial" | "Manageable" | "Permanent". | |
regulatory_scope | "None" | "Notification" | "Legal". | |
security_properties | Comma-separated properties (optional). | |
usage_subscore | "None" | "Low" | "High". |
add_attacker Add Attacker
Add a new attacker to a threat model. Creates a new version. **Authoring contract**: ``capability`` names the *operations the attacker can perform from its position* and what they achieve — not just the access or vantage point. Phrase it as "From [position], the attacker can [concrete operations] …" (e.g. "From the network path between the API server and the database, the attacker can read and alter requests and responses to exfiltrate data in transit or inject forged responses"). A capability that states only access is flagged with a ``quality_warning`` and the control objectives derived…
| Parameter | Type | Description |
|---|---|---|
capability * | string | Attacker capability description (required). |
model_id * | string | ID of the threat model. |
server_version * | string | |
archetype | string | Archetype (e.g., "insider", "external"). |
change_reason | Required when ``surface_extent`` is supplied — documents the declaration for the audit trail. | |
position | string | Position/access level. |
surface_extent | ``"whole"`` when, from its position, the attacker's operations range over ANY entry of the interface it reaches (any endpoint, request, row, file, message or frame). Requires ``change_reason``. Omit t… | |
trust_boundary_ids | Comma-separated ids of the boundaries the attacker has crossed. Naming them attests the position: a person's is recorded attested; a program's only under a rule delegating ``position_attested``, other… |
edit_attacker Edit Attacker
Edit an attacker; only the fields given change. ``capability`` names the operations performable from the position ("From [position], the attacker can …"), else it gets a ``quality_warning``. Identity fields are LLM-gated. The composed ``likelihood`` comes from the factors. An edit of ``attack_vector`` or ``privileges_required`` creates a model version (reachability reads both); other factor edits are recorded as rating revisions. Over a pending rating (``rating_pending``), a factor edit settles the pair, a judgment (``rating_reconfirmed``). New words are rated for (one call, at your cost);…
| Parameter | Type | Description |
|---|---|---|
attacker_id * | string | |
model_id * | string | |
server_version * | string | |
archetype | ||
attack_complexity | Low | High. | |
attack_vector | Network | Adjacent | Local | Physical. | |
attest_position | true attests the current position. | |
attest_privileges | true attests the current ``privileges_required``, whatever its value. | |
attest_surface_extent | true attests the current extent. | |
capability | ||
capability_prevalence | Commodity | Targeted | Rare. | |
change_reason | Why; required as above. | |
evidence | string | JSON array of the citations this judgment rests on (at most 20, each at most 2000 characters): {"kind": "code", "path", "lines"?, "commit"?}, {"kind": "url", "url", "lines"?} or {"kind": "quote", "sou… |
likelihood_rationale | ||
position | ||
privileges_required | None | Low | High. | |
surface_extent | ``whole`` (any entry of the interface reached) or ``point`` (one named entry). | |
trust_boundary_ids | Comma-separated ids of the boundaries the attacker has crossed; replaces the set. | |
user_interaction | None | Required. |
reevaluate_threat_model_factors Reevaluate Threat Model Factors
Re-run the LLM factor judgment on a model's live assets and attackers: every one, those ``entity_ids`` names, only those nobody rated (``unrated_only``), or only those whose rating was made for another description of the system (``stale_only``, an entity's ``rating_stale``; with both flags, either). With ``entity_ids`` a flag narrows to those named. The review queue's ``rating_stale`` row names the request that re-rates its entities. Re-baselines factors after a bug fix or description change, or rates what reads "not rated", without regenerating the model (which would destroy controls, asserti…
| Parameter | Type | Description |
|---|---|---|
model_id * | string | ID of the threat model to re-rate. |
server_version * | string | |
change_reason | Optional audit-trail reason (default "LLM factor re-evaluation"). | |
entity_ids | string | Optional comma-separated asset and attacker ids (e.g. "A-03,T-14"); omit for every live entity. |
stale_only | boolean | Only entities rated for another description. Default False. |
unrated_only | boolean | Only entities whose ``rating_source`` is ``unrated``. Default False. |
get_verdict_divergence Get Verdict Divergence
Where the LLM's verdicts disagree with the model's authored state. Two coverage divergence kinds, distinguished by the LLM's ``p_covers`` (probability the control covers the CO), shown as "model confidence": - ``missing_mapping``: HIGH p_covers, but the CO is NOT mapped — the LLM is confident the control covers it, so it should be mapped. Accepting ADDS the mapping. - ``spurious_mapping``: LOW p_covers, but the CO IS mapped — the LLM is confident the control does NOT cover it, so the mapping is likely wrong and inflates apparent coverage. Accepting REMOVES the mapping.…
| Parameter | Type | Description |
|---|---|---|
model_id * | string | ID of the threat model. |
server_version * | string | |
include_dismissed | boolean | When true, return ONLY previously-dismissed rows (the undo view) instead of the active list. |
kind | string | Optional filter — "missing_mapping", "spurious_mapping", or "group_sufficiency". Empty returns all kinds. |
limit | integer | Max rows per section (clamped to 1-500, default 100). Set to 500 to pull an entire section in one call. |
offset | integer | Skip the first N rows of each section, for pagination. |
resolve_verdict_divergences Resolve Verdict Divergences
Accept a batch of coverage divergences as mapping changes, or dismiss a batch of divergences. Mutating. ``action="accept"``: each ``missing_mapping`` ADDS its CO to the control, each ``spurious_mapping`` REMOVES it, one version per affected control. Items are validated one by one: the answer separates ``applied`` from ``skipped`` (stale, would orphan, already so). To accept only confident rows, filter ``get_verdict_divergence``'s coverage rows by ``p_covers`` (near 1.0 for missing, near 0.0 for spurious) first. ``reason`` (min 10 chars) is recorded on each control's history. ``action="dismis…
| Parameter | Type | Description |
|---|---|---|
action * | string | "accept" or "dismiss". |
items * | string | JSON array of rows. accept: ``{"control_id", "co_id", "kind"}`` with kind ``missing_mapping`` or ``spurious_mapping``. dismiss: ``{"kind", "co_id", "control_id"?, "group_id"?}`` (control_id for covera… |
model_id * | string | ID of the threat model. |
reason * | string | Why (accept: min 10 chars; dismiss: non-empty). |
server_version * | string |
list_compliance_frameworks List Compliance Frameworks
List the compliance frameworks available to map controls against. Read-only; no side effects. Returns both built-in frameworks (e.g. OWASP ASVS) and any custom frameworks in the workspace. Use this to discover framework identifiers before ``select_compliance_frameworks`` (activate one for a model) or ``import_compliance_framework`` (add a custom one). Takes no arguments beyond the version guard.
| Parameter | Type | Description |
|---|---|---|
server_version * | string |
import_compliance_framework Import Compliance Framework
Import a custom compliance framework. Requires PRO tier. Use this when your customer's program (regulatory, contractual, or internal) is not covered by Mipiti's built-in frameworks. After import, the framework is selectable on threat models exactly like a built-in. Fields: ``name`` (required), ``version``, ``description``, ``requirements`` (required, non-empty), ``level_definitions``. Each requirement takes ``id`` and ``description`` (required), ``level`` (integer, default 1), the optional grouping ``chapter_id`` / ``chapter_name`` / ``section_id`` / ``section_name`` / ``title``, ``scope``…
| Parameter | Type | Description |
|---|---|---|
framework_json * | string | The framework body as a JSON string. |
server_version * | string |
map_control_to_requirement Map Control To Requirement
Manually map one security control to one compliance-framework requirement. Mutating: records a control-to-requirement mapping, which re-derives that requirement's coverage in the compliance report. Use for a single, deliberate mapping you are asserting by hand. To let the LLM propose mappings across many requirements at once, use auto_map_controls; to close gaps end-to-end (map + exclude + fill), use auto_remediate_compliance.
| Parameter | Type | Description |
|---|---|---|
control_id * | string | ID of the control to map (e.g. "CTRL-01"). |
framework_id * | string | ID of the compliance framework. |
model_id * | string | ID of the threat model. |
requirement_id * | string | ID of the requirement to map to (e.g. "V2.1.1"). |
server_version * | string | |
confidence | string | Provenance label recorded on the mapping: "manual" (default, operator-asserted), "llm" (machine-suggested), or "verified" (human-confirmed). |
notes | string | Optional free-text note explaining the mapping rationale. |
auto_map_controls Auto Map Controls
LLM-map a model's existing controls to a framework's requirements. Requires PRO tier. Mutating: writes control-to-requirement mappings. Runs as a background job (typically 20-45s); this tool waits for completion and returns the result. Sits between the manual map_control_to_requirement (one mapping at a time) and the full auto_remediate_compliance loop (which also excludes non-applicable requirements and proposes new entities for remaining gaps). auto_map_controls only creates mappings from controls that already exist — it never adds or excludes entities.
| Parameter | Type | Description |
|---|---|---|
framework_id * | string | ID of the compliance framework. |
model_id * | string | ID of the threat model. |
server_version * | string | |
control_id | Optional single control ID to map; omit to map all of the model's controls. |
update_organization Update Organization
Set per-organization level grades for IEC 62443-4-1 and NIST CSF. Admin-only: the backend requires the caller to be an admin in the organization (or a superadmin). Non-admins will get a 403; do not invoke this tool unless you've verified admin role for the target org. ``target_ml`` is the IEC 62443-4-1 Maturity Level the organization targets for its secure-development program (1-5). ``csf_tier`` is the NIST CSF Tier the organization targets for its cybersecurity risk-management posture (1-4). Because ``None`` on the wire is indistinguishable from "field omitted", pass ``clear_target_ml=True…
| Parameter | Type | Description |
|---|---|---|
org_id * | string | Organization ID. |
server_version * | string | |
clear_csf_tier | boolean | Explicitly reset ``csf_tier`` to NULL. |
clear_target_ml | boolean | Explicitly reset ``target_ml`` to NULL. |
csf_tier | NIST CSF Tier (1-4), or ``None`` to leave unchanged. | |
target_ml | IEC 62443-4-1 Maturity Level (1-5), or ``None`` to leave unchanged. |
add_component Add Component
Add a component to a threat model. Components bridge security architecture to code organization. They map trust boundaries to repos so controls can be scoped to the codebase that implements them. They also drive the deterministic reachability composer's asset-boundary derivation: an asset's trust-boundary footprint is the union of its components' ``trust_boundary_ids``. Generation reads no components, so add or edit them after ``generate_threat_model``, not before. A component with empty ``repo_url`` is either speculative (your own code, not linked to a repo yet) or external (e.g. a third-p…
| Parameter | Type | Description |
|---|---|---|
model_id * | string | ID of the threat model. |
name * | string | Component name (e.g., "Backend API", "Auth Worker"). |
server_version * | string | |
path | string | Path within repo for monorepos (e.g., "services/auth"). |
repo_url | string | Repository URL (e.g., "github.com/org/backend"). Empty string is valid for speculative components — pass a real URL once you've identified the codebase. |
trust_boundary_ids | string | Comma-separated trust boundary IDs that this component spans (its deployment zone). Drives reach decisions for any asset scoped to this component. |
edit_component Edit Component
Edit a component's properties. Per-component level grades are orthogonal axes — set whichever apply to the program the component is in scope for. Leave a field unset (``None``) to keep the current server-side value; backend treats absent fields as "unchanged".
| Parameter | Type | Description |
|---|---|---|
component_id * | string | ID of the component (e.g., "CMP1"). |
model_id * | string | ID of the threat model. |
server_version * | string | |
eal | Common Criteria Evaluation Assurance Level (1-7). For components subject to CC certification. | |
fips_level | FIPS 140-3 Security Level (1-4) for the cryptographic module embedded in this component. | |
name | string | New name (empty = unchanged). |
path | string | New path (empty = unchanged). |
repo_url | string | New repo URL (empty = unchanged). |
target_sl | IEC 62443 target Security Level (1-4). For industrial / OT components that need a 62443 zone target. | |
trust_boundary_ids | string | New trust boundary IDs (comma-separated, empty = unchanged). |
get_group_dependencies Get Group Dependencies
The reliance edges among a tag's member models. Read-only; no side effects. Returns ``{tag_id, tag_name, models, edges, total}``: one row per edge a member declared on another model's control (``manage_reliance`` / ``attach_foundation``), with both models' titles, the ``mode`` (``delegated`` or ``relied_upon``), the source objective or control, the provider control, its ``status`` (``draft``, ``active``, ``broken``, ``rejected``), ``validation_verdict`` and ``credit_state`` (whether it credits its objective now). Empty when no member relies on another. Use it to review the cross-model depend…
| Parameter | Type | Description |
|---|---|---|
group_id * | string | ID of the tag. |
server_version * | string |
get_assertion_types Get Assertion Types
List the assertion types submit_assertions accepts, with their params. Read-only. Returns the catalogue as structured data: every type, what it proves, its ``soundness`` class, which params it requires, which it accepts (an array-valued param carries its ``item_schema``), and a worked example. ``soundness_classes`` defines the five classes by the fact a pass establishes, weakest to strongest — ``presence``, ``under_approximating_scan``, ``existential_witness``, ``sound_over_approximation``, ``by_construction`` — and ``sound_classes`` names the two that can credit a for-all clause. ``cover…
| Parameter | Type | Description |
|---|---|---|
server_version * | string | |
types | Optional comma-separated type names to return (e.g. "file_exists,pattern_absent"). Omit for all of them. |
submit_assertions Submit Assertions
Typed claims about a control, assumption or functional test; CI checks later. get_assertion_types returns it all as data. By class, strongest first, as name(required) [opt: optional]: [by_construction] - typed_boundary(scope, sinks, boundary_type, constructors, property) [opt: allowlist, wrappers] [sound_over_approximation] - sink_default_deny(scope, sinks, safe_forms, property) [opt: allowlist, wrappers] [existential_witness] - test_attested(test) [opt: env, mechanism] [under_approximating_scan] - pattern_matches(file, pattern) [opt: scope_start, scope_end, multiline, dotall,…
| Parameter | Type | Description |
|---|---|---|
assertions_json * | string | |
model_id * | string | |
server_version * | string | |
assumption_id | ||
control_id | ||
functional_test_id |
list_assertions List Assertions
List active assertions for a control or assumption. Provide exactly one of control_id or assumption_id. Returns a flat list of assertions. Each assertion carries an ``origin`` field: "own" for assertions submitted directly against this model's control or assumption, "inherited" for assertions contributed through model composition (composed models whose assertions apply here). Inherited assertions are included in the listing. Each assertion also carries three INDEPENDENT verdict fields. Read them together — a passing tier check is not the same as sufficient evidence: - ``tier1_status``  
| Parameter | Type | Description |
|---|---|---|
model_id * | string | ID of the threat model. |
server_version * | string | |
assumption_id | ID of the assumption (omit if using control_id). | |
control_id | ID of the control (omit if using assumption_id). |
delete_assertion Delete Assertion
Permanently delete a single assertion from a control or assumption. Mutating and destructive: the assertion record is removed, not soft-deleted, and its contribution to sufficiency/verification is dropped. It does NOT itself re-run verification; the deletion queues a background re-evaluation of the control's sufficiency, which a later ``get_sufficiency`` read reports once it lands. Use to retract a claim that was submitted in error or that ``get_verification_report`` flagged as misaligned (off-topic for the control's current description). To add assertions use ``submit_assertions``; to inspec…
| Parameter | Type | Description |
|---|---|---|
assertion_id * | string | ID of the assertion to delete. |
model_id * | string | ID of the threat model. |
server_version * | string | |
assumption_id | ID of the assumption the assertion belongs to (omit if it belongs to a control). | |
control_id | ID of the control the assertion belongs to (omit if it belongs to an assumption). |
get_verification_report Get Verification Report
Get verification report with summary stats and sufficiency gaps. Returns tier1/tier2 pass/fail/pending counts, per-control verification status, and sufficiency details. Each per-control ``sufficiency`` block carries: - ``status``: ``"sufficient" | "insufficient" | "pending" | "stale"``. ``"stale"`` means the stored verdict no longer reflects the current control description, active assertion set or the rules it was computed under. Reading does not queue a re-evaluation: the write that changed a control queues its own. Call this tool again later for the refreshed verdict. - ``detail…
| Parameter | Type | Description |
|---|---|---|
model_id * | string | ID of the threat model. |
server_version * | string | |
limit | integer | Max control entries to return (0=all). |
offset | integer | Skip first N control entries. |
status | string | Filter by verification status: "verified", "partially_verified", "pending", "unverified". |
summary_only | boolean | Omit per-assertion details and drift items (default True). |
get_sufficiency Get Sufficiency
Whether the submitted assertions of one control, or of one functional test, together prove it. Read-only; name exactly one id. For a control this explains ``verification_status: "partially_verified"``. ``status`` is ``sufficient | insufficient | pending``, with ``freshness`` (``fresh | stale | pending``) beside it; insufficient carries ``details`` naming EACH uncovered clause and the evidence that would close it. A ``soundness_tier`` is the weakest clause's tier: a control is proven no more strongly than its thinnest clause. It is composed over the evidence as it stands now (``strength_basis:…
| Parameter | Type | Description |
|---|---|---|
model_id * | string | |
server_version * | string | |
control_id | string | |
functional_test_id | string |
submit_findings Submit Findings
Record negative findings (gaps discovered while scanning a codebase against a model's controls). Mutating: persists new finding records against the model. Use after a gap-discovery scan (see ``get_scan_prompt``) to log where expected control evidence was NOT found. Findings are the negative counterpart to assertions (positive proof via ``submit_assertions``): a finding says "I looked here for this and it was missing." Once submitted, drive a finding through its lifecycle with ``update_finding`` and review them with ``list_findings``.
| Parameter | Type | Description |
|---|---|---|
findings_json * | string | JSON string of an **array** of finding objects. Each object should carry: - ``control_id`` (str): the control the gap relates to. - ``title`` (str): short summary of the gap. - ``description`` (str):… |
model_id * | string | ID of the threat model. |
server_version * | string |
list_findings List Findings
List negative findings recorded on a threat model. Read-only. Returns finding rows with their lifecycle status; use to triage gaps or to find a ``finding_id`` for ``update_finding`` / ``remediate_finding``. Each row carries an ``origin`` ("own" for findings recorded on this model, "inherited" for findings contributed through model composition, with ``inherited_from_*`` context); inherited findings are included in the listing.
| Parameter | Type | Description |
|---|---|---|
model_id * | string | ID of the threat model. |
server_version * | string | |
control_id | string | Optional filter to findings on one control. Empty (default) returns findings for all controls. |
status | string | Optional lifecycle filter, one of "discovered", "acknowledged", "remediated", "verified", "dismissed", "auto_resolved". Empty (default) returns all statuses. ``auto_resolved`` is closed by the platfor… |
update_finding Update Finding
Advance a finding through its lifecycle. Mutating: updates the finding's status and metadata. Use to acknowledge, remediate, verify, or dismiss a finding previously recorded by ``submit_findings`` / ``list_findings``. This records a MANUAL status transition — the machine-set ``auto_resolved`` state is not among the statuses it accepts; for gaps whose kind has an automatic fix, ``remediate_finding`` performs the actual cleanup instead.
| Parameter | Type | Description |
|---|---|---|
finding_id * | string | ID of the finding to update. |
model_id * | string | ID of the threat model. |
server_version * | string | |
status * | string | New lifecycle status, one of "discovered", "acknowledged", "remediated", "verified", "dismissed". ``auto_resolved`` is NOT settable here: it asserts that a condition is no longer reproduced, which is… |
evidence | string | JSON array of the citations this judgment rests on (at most 20, each at most 2000 characters): {"kind": "code", "path", "lines"?, "commit"?}, {"kind": "url", "url", "lines"?} or {"kind": "quote", "sou… |
notes | string | Optional free-text notes recorded on the finding. |
reason | string | Optional rationale; required when dismissing (status="dismissed"). |
remediation_assertion_ids | string | Optional comma-separated assertion IDs that evidence the fix, linking the remediation to the assertions that prove it. Empty by default. |
remediate_finding Remediate Finding
Preview, and on confirmation apply, the platform's remediation of a finding. Without ``apply`` it is read-only: it returns a structured diff of what the remediation would change, shaped by the finding's kind (for ``structural_duplicate_controls``: which controls are kept, which dropped, and the CO mappings and framework refs the survivor takes). Show the operator that diff and get explicit confirmation. With ``apply=True`` it commits the change, recording ``justification`` (a one-line operator rationale, required) on the audit trail. Never apply without having shown the preview: the platform…
| Parameter | Type | Description |
|---|---|---|
finding_id * | string | ID of the finding. |
server_version * | string | |
apply | boolean | False (default) previews; True applies. |
evidence | string | JSON array of the citations this judgment rests on (at most 20, each at most 2000 characters): {"kind": "code", "path", "lines"?, "commit"?}, {"kind": "url", "url", "lines"?} or {"kind": "quote", "sou… |
justification | string | With ``apply=True``: the operator's rationale. |
get_findings_risks Get Findings Risks
Workspace-scoped triage dashboard: open findings, active risk acceptances, and at-risk Control Objectives across every model the workspace can access. Use this as the entry point when an operator asks "what's open?" or "what should I work on next?" — one round-trip returns all three categories with model context and risk dimensions (severity, status, risk_tier, owner, review_by) so the agent can triage without per-model fan-out. The endpoint is read-only and fast; it composes from existing per-model queries server-side. Returns the envelope verbatim: ``{workspace_id, evaluated_at, models,…
| Parameter | Type | Description |
|---|---|---|
server_version * | string |
get_remediation_leverage Get Remediation Leverage
Remediation-leverage plan for a model: which controls to implement first to close the most control objectives with the least work. Returns the model's not-yet-satisfied controls ranked by how many control objectives each one closes (``ranked``), plus a greedy minimal fix order — the sequence of controls that reaches the most mitigated objectives with the fewest controls (``greedy_plan``) — and a ``summary`` of the collapse (total objectives, currently mitigated, how many controls the plan needs). Use to prioritize implementation work: a single call tells the agent which controls give the…
| Parameter | Type | Description |
|---|---|---|
model_id * | string | ID of the threat model. |
server_version * | string |
list_risk_acceptances List Risk Acceptances
List all risk acceptances on a specific threat model — risks that an operator explicitly accepted instead of mitigating. Each entry carries the CO id, owner, justification, status (``active`` / ``expired`` / ``revoked``), and the review deadline. Use to inspect which gaps were intentionally accepted versus genuinely unaddressed when triaging at-risk COs. Returns risk acceptances ONLY. An objective declared not applicable is a different claim — it is not an accepted risk, and counting it as one would read a "does not apply here" as "we are carrying this exposure". Use ``list_co_dispositio…
| Parameter | Type | Description |
|---|---|---|
model_id * | string | ID of the threat model. |
server_version * | string |
create_risk_acceptance Create Risk Acceptance
Record that an operator explicitly ACCEPTS the residual risk on a control objective instead of mitigating it — the write counterpart to ``list_risk_acceptances``. Use when a control objective's residual risk is a deliberate, documented decision rather than an unaddressed gap: the acceptance carries an owner, a justification, and a review deadline, and reads as ``active`` until it expires or is revoked. Prefer this over leaving a known-and-accepted risk implicit — it makes the decision auditable and forces a revisit by the deadline. An accepted objective is still surfaced (as accepted, not…
| Parameter | Type | Description |
|---|---|---|
control_objective_id * | string | The control objective whose residual risk is accepted. |
justification * | string | Why the risk is accepted (the rationale of record). |
model_id * | string | ID of the threat model. |
owner * | string | Who owns the acceptance (name / role). |
review_by * | string | ISO 8601 date to revisit the acceptance (e.g. "2027-02-06T00:00:00Z"). |
server_version * | string | |
evidence | string | JSON array of the citations this judgment rests on (at most 20, each at most 2000 characters): {"kind": "code", "path", "lines"?, "commit"?}, {"kind": "url", "url", "lines"?} or {"kind": "quote", "sou… |
create_co_disposition Create Co Disposition
Record that a control objective DOES NOT APPLY to this system — a signed, expiring judgment, not a dismissal. The sibling of ``create_risk_acceptance``, and the distinction between them is the claim being made. A risk acceptance says *the exposure is real and we are carrying it*. A disposition says *this objective does not apply here at all* — the asset is not handled the way the objective assumes, the attacker position does not exist in this deployment, the capability is not present. **The objective is not removed.** It stays in the control-objective matrix, stays in every coverage coun…
| Parameter | Type | Description |
|---|---|---|
control_objective_id * | string | The objective being declared not applicable. |
justification * | string | Why the objective does not apply to this system. |
model_id * | string | ID of the threat model. |
owner * | string | Who owns the judgment (name / role). They answer for it. |
review_by * | string | ISO 8601 date the claim expires (e.g. "2027-02-06T00:00:00Z"). |
server_version * | string | |
evidence | string | JSON array of the citations this judgment rests on (at most 20, each at most 2000 characters): {"kind": "code", "path", "lines"?, "commit"?}, {"kind": "url", "url", "lines"?} or {"kind": "quote", "sou… |
revoke_co_disposition Revoke Co Disposition
Revoke a signed judgment on a control objective: a not-applicable disposition or a risk acceptance. Mutating, and terminal: a revoked judgment is kept in the audit trail (``list_co_dispositions``) and never comes back; sign a new one if the claim holds again. The objective returns to whatever posture its controls give it, gap included, and a revoked not-applicable disposition puts its objective back in what a build authors. So revoking one is refused (``generation_active``) while a control build holds the model. A judgment inherited from an ancestor model is revoked there, not here. Use it w…
| Parameter | Type | Description |
|---|---|---|
disposition_id * | string | The judgment's ``id`` (from ``create_co_disposition``, ``create_risk_acceptance`` or ``list_co_dispositions``). |
model_id * | string | ID of the threat model the judgment is recorded on. |
server_version * | string | |
evidence | string | JSON array of the citations this judgment rests on (at most 20, each at most 2000 characters): {"kind": "code", "path", "lines"?, "commit"?}, {"kind": "url", "url", "lines"?} or {"kind": "quote", "sou… |
list_co_dispositions List Co Dispositions
List the signed judgments recorded against this model's control objectives — risk acceptances, not-applicable dispositions, or both. Read-only. Each entry carries the objective it names, the owner who signed it, the justification, the dates, and its status. Expired and revoked entries are included: a decision that lapsed is part of the audit trail, and hiding it would leave a reader unable to tell a judgment that was reviewed from one that was never made. Read this before authoring a new judgment on an objective — an existing one may already cover it, or may have expired and need re-sign…
| Parameter | Type | Description |
|---|---|---|
model_id * | string | ID of the threat model. |
server_version * | string | |
kind | string | Optional filter — "risk_accepted" or "not_applicable". Omit for both. Case and surrounding whitespace do not matter. A value that is neither is rejected by name rather than matched against nothing,… |
complete_setup_step Complete Setup Step
Mark one onboarding setup step as done. Mutating: updates the workspace onboarding checklist. Call after actually performing the corresponding setup action on the user's behalf. Check current progress with ``get_setup_status`` first to avoid re-marking completed steps. An unrecognized ``step_id`` is rejected without any state change.
| Parameter | Type | Description |
|---|---|---|
server_version * | string | |
step_id * | string | The step to mark complete, one of "mcp_configured", "mipiti_verify_installed", "ci_secret_added", "ci_pipeline_added". |
get_setup_status Get Setup Status
Get the workspace onboarding checklist with completed and pending steps. Read-only. Call this before suggesting or performing setup actions so already-done steps aren't repeated; mark a step done with ``complete_setup_step``. Takes no arguments beyond the version header.
| Parameter | Type | Description |
|---|---|---|
server_version * | string |
add_trust_boundary Add Trust Boundary
Add a trust boundary. Creates a new model version. Returns ``{model, entities, ...}``: the model's id, version and title, and ``entities.trust_boundaries`` the boundary as created.
| Parameter | Type | Description |
|---|---|---|
description * | string | What this boundary represents (e.g., "Public network to API server"). |
model_id * | string | ID of the threat model. |
server_version * | string | |
crosses | Optional comma-separated asset IDs that cross this boundary. | |
passes | Optional comma-separated AttackVector values the boundary allows through (subset of "Network,Adjacent,Local,Physical"). Omit for the methodology default (passes-everything). Narrowing this set is what… | |
sealed | Optional. Set True to declare the boundary has NO lateral ingress — the only way into its zone is crossing the perimeter (an air-gap / network-segmented enclave). On its own this is a suggestion: on… |
edit_trust_boundary Edit Trust Boundary
Edit a trust boundary. Creates a new model version. Returns ``{model, entities, ...}``: the model's id, version and title, and ``entities.trust_boundaries`` the boundary as it now stands. Attesting the seal is a judgment: a person's edit attests it; a program's only under a workspace rule delegating ``seal_attested``, otherwise the edit lands with the seal unattested and the answer's ``attestation`` names the parked ``escalation_id`` (never a 403). Any change to ``passes``, ``crosses``, ``neighbors`` or ``sealed`` voids an attested seal: the attestation is of the content as it stood.
| Parameter | Type | Description |
|---|---|---|
model_id * | string | ID of the threat model. |
server_version * | string | |
tb_id * | string | ID of the trust boundary (e.g., "TB1"). |
change_reason | Required when ``passes``, ``sealed``, or the seal attestation actually changes. Captured in the audit trail; documents why the boundary's vector filter, isolation claim, or attestation changed. | |
crosses | New comma-separated asset IDs. | |
description | New description. | |
evidence | string | JSON array of the citations this judgment rests on (at most 20, each at most 2000 characters): {"kind": "code", "path", "lines"?, "commit"?}, {"kind": "url", "url", "lines"?} or {"kind": "quote", "sou… |
passes | New comma-separated AttackVector values the boundary allows through (subset of "Network,Adjacent,Local,Physical"). Use the empty string to set "blocks all"; omit to leave unchanged. Reach-relevant —… | |
seal_source | "attested" | "unattested". Only an attested seal lets reachability decisively rule an objective unreachable past the boundary; an unattested (default or generated) seal is treated as pivotable. Use "a… | |
sealed | New isolation flag. True declares NO lateral ingress (the only way in is crossing the perimeter — an air-gap / segmented enclave), which lets reachability decisively rule the boundary unreachable; F… |
add_assumption Add Assumption
Add an assumption. Creates a new model version. Returns ``{model, entities, ...}``: the model's id, version and title, and ``entities.assumptions`` the assumption as created. A ``non_applicability`` assumption may close a gap the build proposal reports as missing from the inventory: ``taxonomy_primitive`` names a primitive that applies to nothing here, or with ``taxonomy_property`` one security property that primitive entails, leaving the primitive and its other properties owed. For a missing ``cryptographic_operations:U`` where every key answering it can be read out (none is held in a KMS or…
| Parameter | Type | Description |
|---|---|---|
description * | string | What is assumed (e.g., "Customer restricts CI runner egress"). |
model_id * | string | ID of the threat model. |
server_version * | string | |
assumption_type | string | "external" (default, allows manual attestation) or "non_applicability" (requires CI verification, no manual attestation). |
entity_ids | Comma-separated asset and attacker ids whose words rest on it (400 for one naming no live entity). The quality check of each is shown it and reads a claim it states as grounded: record a conservative… | |
evidence | string | JSON array of the citations this judgment rests on (at most 20, each at most 2000 characters): {"kind": "code", "path", "lines"?, "commit"?}, {"kind": "url", "url", "lines"?} or {"kind": "quote", "sou… |
exclusion_asset_component_id | "*" or concrete component ID. | |
exclusion_asset_id | "*" or concrete asset ID. | |
exclusion_attacker_id | Predicate match — "*" wildcard (default when any other exclusion_* param is set) or concrete attacker ID. | |
exclusion_attacker_vector | One of "Network" | "Adjacent" | "Local" | "Physical" | "*". | |
exclusion_co_ids | Comma-separated CO IDs the predicate matches explicitly. When non-empty, overrides the match fields. | |
exclusion_property_match | "C" | "I" | "A" | "U" | "*". | |
linked_co_ids | Optional comma-separated CO IDs this assumption covers. | |
taxonomy_primitive | The taxonomy primitive the assumption declares not applicable (e.g. "cryptographic_operations"); needs ``assumption_type="non_applicability"``. | |
taxonomy_property | With ``taxonomy_primitive``, the one property of it declared not applicable ("C" | "I" | "A" | "U"); 400 when the primitive does not entail it. Declaring either is a judgment (``not_applicable_declare… |
edit_assumption Edit Assumption
Edit an assumption. Creates a new model version. Returns ``{model, entities, ...}``: the model's id, version and title, and ``entities.assumptions`` the assumption as it now stands.
| Parameter | Type | Description |
|---|---|---|
assumption_id * | string | ID of the assumption to edit (e.g., "AS1"). |
model_id * | string | ID of the threat model. |
server_version * | string | |
clear_exclusion | boolean | When True, removes the predicate entirely (the assumption becomes prose-only). Mutually exclusive with the exclusion_* params — if both are sent, the exclusion_* params win. |
description | New description (omit to leave unchanged). | |
entity_ids | Comma-separated asset and attacker ids whose words rest on it; replaces the ones it names ("" names none, omit to leave unchanged). The quality check of each is shown it. | |
evidence | string | JSON array of the citations this judgment rests on (at most 20, each at most 2000 characters): {"kind": "code", "path", "lines"?, "commit"?}, {"kind": "url", "url", "lines"?} or {"kind": "quote", "sou… |
exclusion_asset_component_id | "*" or a concrete component ID. | |
exclusion_asset_id | "*" or a concrete asset ID. | |
exclusion_attacker_id | Predicate match — "*" wildcard or a concrete attacker ID. | |
exclusion_attacker_vector | One of "Network" | "Adjacent" | "Local" | "Physical" | "*". | |
exclusion_co_ids | Comma-separated CO IDs the predicate matches explicitly; when non-empty, overrides the match fields. Supplying any exclusion_* param rewrites the whole predicate (unspecified fields default to "*"). | |
exclusion_property_match | "C" | "I" | "A" | "U" | "*". | |
linked_co_ids | New comma-separated CO IDs; replaces the existing linkage (omit to leave unchanged). |
submit_attestation Submit Attestation
Record that a responsible party affirmed an assumption holds. Only for external assumptions. Non-applicability assumptions require CI verification (submit assertions + run mipiti-verify) — manual attestation is rejected for them. An assumption with a current attestation can mitigate linked COs. When the attestation expires, those COs become at-risk until re-attested or covered by controls. Attesting accepts the assumption, which is a judgment about the world the platform cannot check: a program may do it only under a workspace delegation rule for ``assumption_accepted``; otherwise the cal…
| Parameter | Type | Description |
|---|---|---|
assumption_id * | string | ID of the assumption (e.g., "AS1"). |
model_id * | string | ID of the threat model. |
server_version * | string | |
attested_by | string | Who is attesting (name, role, organization). |
evidence | string | JSON array of the citations this judgment rests on (at most 20, each at most 2000 characters): {"kind": "code", "path", "lines"?, "commit"?}, {"kind": "url", "url", "lines"?} or {"kind": "quote", "sou… |
evidence_url | string | Optional link to supporting documentation. |
expires_at | string | ISO 8601 expiry date (e.g., "2026-06-30T00:00:00Z"). |
statement | string | What was attested. |
list_attestations List Attestations
List an assumption's attestation history. Read-only; no side effects. Returns the chronological record of attestation events recorded against the assumption (each with its actor, timestamp, and status/expiry as recorded), so you can trace why the assumption is currently attested, expired, or never attested. An assumption only mitigates its control objectives while it is active AND currently attested, so use this to diagnose coverage that depends on an attestation. To record a new attestation use submit_attestation; for the assumption's current fields (status, description) use get_entity (ent…
| Parameter | Type | Description |
|---|---|---|
assumption_id * | string | ID of the assumption whose attestation history to list. |
model_id * | string | ID of the threat model. |
server_version * | string |
get_control_assumption_groups Get Control Assumption Groups
Get the current assumption group structure for a control. Assumption groups define alternative sets of external claims that can satisfy a control: - Within a group: AND — all assumptions must be active and attested - Across groups: OR — any complete group is sufficient to mark the control as externally handled
| Parameter | Type | Description |
|---|---|---|
control_id * | string | ID of the control (e.g., "CTRL-03"). |
model_id * | string | ID of the threat model. |
server_version * | string |
set_control_assumption_groups Set Control Assumption Groups
Declaratively set the assumption group structure for a control. Replaces all assumption group assignments for this control. Each group is a set of assumption IDs that together externally handle the control; any one group being fully active+attested is sufficient. - Within a group: AND — all referenced assumptions must be active and attested for the group to count as complete - Across groups: OR — any one complete group marks the control as externally handled for mitigation purposes To clear all assumption groups (revert to "not externally handled"), pass an empty JSON object: `{}`.…
| Parameter | Type | Description |
|---|---|---|
control_id * | string | ID of the control (e.g., "CTRL-03"). |
groups * | string | JSON object mapping group numbers to assumption ID lists. Example: '{"1": ["AS1", "AS2"], "2": ["AS3"]}' Empty object `{}` clears all groups. |
model_id * | string | ID of the threat model. |
server_version * | string | |
justification | string | Why this group structure is appropriate (10 to 2000 characters when groups is non-empty; optional when clearing, at most 2000 characters if given). |
convert_assumption_to_controls Convert Assumption To Controls
Convert a violated or retired assumption to controls. Mutating. Retires the assumption's CO linkage and, when any CO it covered is left with no control, proposes a control build for those COs: the result's ``proposal`` (null when nothing is owed) is started with ``start_control_build`` after review, and authors the controls then. Nothing is authored by this call. Use when an assumption is no longer valid and the system owner needs to implement controls instead. Side effect on control-level linkage: this assumption is also removed from every assumption_groups entry on every control that refer…
| Parameter | Type | Description |
|---|---|---|
assumption_id * | string | ID of the assumption to convert. |
model_id * | string | ID of the threat model. |
server_version * | string |
generate_functional_objectives Generate Functional Objectives
Derive capabilities, functional objectives, and the concrete tests to implement from the feature spec. Capabilities are the behaviours the feature must deliver; each is walked against a taxonomy of operating conditions (nominal, boundary, invalid input, dependency failure, concurrency, …) to produce testable Given-When-Then objectives — and then a concrete, implementable test is specified for each objective (so the agent implements the tests rather than deciding what to test). Requires a Pro plan. Billable — may take some time. `refresh=true` re-derives from scratch, replacing prior gen…
| Parameter | Type | Description |
|---|---|---|
model_id * | string | ID of the threat model. |
server_version * | string | |
refresh | boolean | Re-generate from scratch instead of serving cached output. |
get_capabilities Get Capabilities
A model's capabilities (behaviours the feature must deliver), or one of them. Read-only. Without ``capability_id``: every capability, each with its id, name/description and a summary of its component and asset bindings. With it: that capability with its bound components and assets.
| Parameter | Type | Description |
|---|---|---|
model_id * | string | ID of the threat model. |
server_version * | string | |
capability_id | string | Optional; omit to list every capability. |
get_functional_coverage Get Functional Coverage
A model's functional coverage report, or just its actionable gaps. Read-only. By default the whole picture: per-objective state (verified / covered / failing / untested), the Capabilities × Conditions matrix, and the applicable / missing-objective / not-applicable cell accounting. With ``gaps_only=True`` only what needs action: applicable conditions with no objective yet, and objectives that are failing or have no passing test.
| Parameter | Type | Description |
|---|---|---|
model_id * | string | ID of the threat model. |
server_version * | string | |
gaps_only | boolean | Return only the actionable gaps (default False). |
add_functional_test Add Functional Test
Hand-author a single functional test and map it to one or more objectives. Mutating. Generation (generate_functional_objectives) already specifies the tests to implement, so use this only to register an extra test that generation did not produce; a manually-added test survives regeneration/refresh. For bulk-registering tests that already exist in your codebase, use import_functional_tests instead. This records the test at the status you claim — it does not run or verify anything; CI verification happens only when you attach TEST_EXISTS/TEST_ATTESTED evidence via submit_assertions with funct…
| Parameter | Type | Description |
|---|---|---|
description * | string | What the test proves. |
functional_objective_ids * | string | Comma-separated objective ids the test satisfies (at least one required; get them from get_functional_objectives). |
model_id * | string | ID of the threat model. |
server_version * | string | |
component_ids | string | Comma-separated component ids the test exercises (optional). |
status | string | not_implemented | implemented | verified — an operator claim only; an independent CI run is what actually verifies the test. Defaults to not_implemented. |
import_functional_tests Import Functional Tests
Register tests that already exist in your codebase against a model's functional objectives, so tests you already have count toward functional conformance — not only Mipiti-specified tests. Mutating (bulk). Scan the repo's test suite and pass the tests here. Optionally associate each with the objective ids it covers (from get_functional_objectives); the platform verifies each association is applicable before accepting it and returns any it rejected under ``rejected_mappings``. A test with no (or a rejected) association is still imported, unmapped, so it can be associated later (see suggest_f…
| Parameter | Type | Description |
|---|---|---|
model_id * | string | ID of the threat model. |
server_version * | string | |
tests_json * | string | A JSON array of test objects. Each object supports ``test_name``, ``file_path``, ``framework``, ``description``, ``status`` (not_implemented | implemented | verified — an operator claim; an independ… |
suggest_functional_test_mappings Suggest Functional Test Mappings
Suggest which functional objectives each imported test likely covers. For unmapped tests (imported without an association, or added without objective ids), this proposes objective mappings so you can review and apply them with associate_functional_test. It only suggests — nothing is associated until you confirm.
| Parameter | Type | Description |
|---|---|---|
model_id * | string | ID of the threat model. |
server_version * | string | |
test_ids | string | Comma-separated functional-test ids to map. Empty means every currently-unmapped test. |
associate_functional_test Associate Functional Test
Associate a functional test with one or more functional objectives. Use this after suggest_functional_test_mappings, or to hand-map a test to the objectives it covers. The platform verifies each association is applicable before accepting it and returns any it declined under ``rejected_mappings``.
| Parameter | Type | Description |
|---|---|---|
functional_objective_ids * | string | Comma-separated objective ids the test covers. |
functional_test_id * | string | The functional test to associate. |
model_id * | string | ID of the threat model. |
server_version * | string |
get_functional_satisfaction_groups Get Functional Satisfaction Groups
Read the satisfaction-group structure for a functional objective. Read-only; no side effects. A satisfaction group is a set of functional tests that together satisfy the objective: AND within a group (every test in the group must be verified), OR across groups (any one complete group satisfies the objective). Returns the current numbered groups plus any tests associated with the objective but not placed in a group. Use before set_functional_satisfaction_groups to see the current structure, or to trace why an objective is / isn't satisfied. This is the functional analog of get_control_assumpt…
| Parameter | Type | Description |
|---|---|---|
functional_objective_id * | string | The objective whose groups to read. |
model_id * | string | ID of the threat model. |
server_version * | string |
set_functional_satisfaction_groups Set Functional Satisfaction Groups
Declaratively set (replace) a functional objective's satisfaction groups. Mutating. Replaces the objective's group structure wholesale. Each group is a set of functional tests that together satisfy the objective (AND within a group); the objective counts as satisfied when any one complete group has all its tests verified (OR across groups). Tests you want to keep associated with the objective but outside any group go in ``ungrouped``. Unlike set_control_assumption_groups, there is no AI relevance gate — the structure you submit is applied as-is. Read the current state first with get_functio…
| Parameter | Type | Description |
|---|---|---|
functional_objective_id * | string | The objective whose groups to set. |
groups_json * | string | JSON object mapping group label to a list of functional test ids, e.g. ``{"1": ["FT-1", "FT-2"], "2": ["FT-3"]}``. Pass ``{}`` to clear all groups. |
model_id * | string | ID of the threat model. |
server_version * | string | |
ungrouped | string | Comma-separated functional-test ids to keep associated with the objective but unassigned to any group (optional). |
get_cwe_catalog Get Cwe Catalog
Get the platform's CWE reference catalog status. Returns ``{enabled, current_version, entry_count, versions}``. When CWE classification is not turned on for this instance, ``enabled`` is false and the rest is empty — this is a normal informational response, not an error.
| Parameter | Type | Description |
|---|---|---|
server_version * | string |
get_model_cwe_tags Get Model Cwe Tags
List CWE weakness classifications tagged onto a model's control objectives. Each tag's name/description are resolved from the platform's CWE catalog, never model-authored. A tag whose CWE id has since been deprecated, redefined, or removed by MITRE carries a ``stale`` reason (``missing`` / ``deprecated`` / ``changed``) — re-run ``classify_model_cwe`` to refresh it. 404s if CWE classification is not enabled on this instance.
| Parameter | Type | Description |
|---|---|---|
model_id * | string | ID of the threat model to inspect. |
server_version * | string |
classify_model_cwe Classify Model Cwe
Classify a model's control objectives against the platform CWE catalog. Grounded: the model may only select from the catalog's current-version candidate ids, and every returned id is re-validated against the catalog before storage — a hallucinated or deprecated id is never persisted. Skips control objectives already tagged at the catalog's current version unless ``force`` is set. Returns a summary: ``{status, catalog_version, cos, classified, tags_written, skipped}``. 404s if CWE classification is not enabled on this instance.
| Parameter | Type | Description |
|---|---|---|
model_id * | string | ID of the threat model to classify. |
server_version * | string | |
force | boolean | re-classify control objectives even if already tagged at the catalog's current version (default false). |
get_entity Get Entity
Get a single entity of any core type by ID. Read-only. Dispatches on ``entity_type`` to the per-type read and returns that type's native record as-is (not wrapped in an array): - ``asset`` — the asset's typed fields. Soft-deleted assets carry ``deleted: true``; the caller decides whether to surface them. ``entity_id`` e.g. ``A-01``. A live asset or attacker also carries ``quality``: the quality check's ``outcome`` (``clean``, ``advice``, ``defect``, ``question``, ``invalid``, or ``unchecked`` while none answers it as it stands), the ``warning``, the ``proposed`` correction or t…
| Parameter | Type | Description |
|---|---|---|
entity_id * | string | ID of the entity to fetch. |
entity_type * | string | Which entity to read — one of ``asset``, ``attacker``, ``component``, ``trust_boundary``, ``assumption``. |
model_id * | string | ID of the threat model. |
server_version * | string |
remove_entity Remove Entity
Soft-delete a single entity of any core type. Mutating: creates a new model version. Reversible with ``restore_entity`` using the same ``entity_type`` — the entity's ID is preserved (never reused) so a restore reinstates the same ID and all its links. To change an entity's fields instead of removing it, use the typed ``edit_*`` tool. Runs as a background job, reporting progress while it waits; a job a client stops waiting for finishes or fails on its own. A removal that is refused (the entity is not found or already deleted, or it is the last live asset or attacker) fails with the reason.…
| Parameter | Type | Description |
|---|---|---|
entity_id * | string | ID of the entity to soft-delete. |
entity_type * | string | Which entity to soft-delete — one of ``asset``, ``attacker``, ``component``, ``trust_boundary``, ``assumption``. |
model_id * | string | ID of the threat model. |
server_version * | string |
restore_entity Restore Entity
Un-soft-delete a single entity of any core type, reversing a prior ``remove_entity``. Mutating: creates a new model version. Only affects an entity that is currently soft-deleted. Dispatches on ``entity_type``. Per-type effect: - ``asset`` — revives the asset's tombstoned (asset × attacker) COs with their original IDs, un-orphaning any linked controls. - ``attacker`` — reinstates the attacker under its original ID, revives the COs tombstoned when it was removed, and un-orphans any controls that were anchored to it. - ``component`` — reinstates the component under its original ID…
| Parameter | Type | Description |
|---|---|---|
entity_id * | string | ID of the entity to restore. |
entity_type * | string | Which entity to restore — one of ``asset``, ``attacker``, ``component``, ``trust_boundary``, ``assumption``. |
model_id * | string | ID of the threat model. |
server_version * | string |
get_risk_view Get Risk View
Prioritized Risk View — one row per live Control Objective — at a chosen scope. Read-only; no side effects. ``scope`` selects the aggregation boundary and how ``scope_id`` is interpreted: - ``"model"`` — a single threat model (``scope_id`` = model id). One row per live CO with derived risk tier, asset impact, attacker likelihood, control coverage counts (``coverage_ratio``), and open-finding count (``open_findings``). Tombstoned COs are excluded; pair with ``get_threat_model`` if historical context is needed. Use to triage which COs need attention on one model — a single call ranks t…
| Parameter | Type | Description |
|---|---|---|
scope * | string | aggregation boundary — "model" or "tag". |
scope_id * | string | id of the model or tag selected by ``scope``. |
server_version * | string |
get_compliance_report Get Compliance Report
Compliance gap-analysis report for one framework at a chosen scope. Read-only; no side effects. Requires PRO tier. Evaluates every framework requirement against the mapped controls in scope and classifies each as covered, partial, uncovered, unmapped, or excluded, then returns coverage counts plus per-requirement rows. The framework must first be activated at the same scope via ``select_compliance_frameworks`` (with the matching ``scope``), otherwise there is nothing to report on. ``scope`` selects the boundary and how ``scope_id`` is read: - ``"model"`` — a single threat model (``scope_i…
| Parameter | Type | Description |
|---|---|---|
framework_id * | string | framework to report on (already selected at this scope; see ``list_compliance_frameworks``). |
scope * | string | report boundary — "model" or "tag". |
scope_id * | string | id of the model or tag selected by ``scope``. |
server_version * | string | |
level | optional level filter; omit for all levels. | |
limit | integer | max requirement rows to return, 0 = no explicit limit (model scope only). |
offset | integer | skip the first N requirement rows, pagination (model scope only). Default 0. |
status | optional per-requirement status filter (model scope only). |
select_compliance_frameworks Select Compliance Frameworks
Select (activate) compliance frameworks at a chosen scope. Requires PRO tier. Mutating. Discover valid ids with ``list_compliance_frameworks`` (or add a custom one via ``import_compliance_framework``); view the resulting gap analysis with ``get_compliance_report`` at the same ``scope``. Re-calling replaces the scope's framework selection. ``scope`` selects the target and how ``scope_id`` is read: - ``"model"`` — a single threat model (``scope_id`` = model id). Activating a framework also kicks off background auto-remediation: it auto-maps existing controls to requirements, excludes non-ap…
| Parameter | Type | Description |
|---|---|---|
framework_ids * | string | comma-separated framework ids (e.g. "asvs-4.0,nist-csf"). |
scope * | string | target boundary — "model" or "tag". |
scope_id * | string | id of the model or tag selected by ``scope``. |
server_version * | string |
export_report Export Report
Export a threat model or a tag as a downloadable document. Read-only; no side effects on the source. ``scope`` selects what is exported and how ``scope_id`` is read; ``format`` selects the representation: - ``scope="model"`` (``scope_id`` = model id) supports ``format`` ∈ {``csv``, ``pdf``, ``html``, ``archive``}: - ``csv`` — the model's current state rendered as CSV; returned inline as UTF-8 text in ``content``. - ``pdf`` / ``html`` — the rendered report, produced by a server-side job. - ``archive`` — the self-contained, independently-verifiable JSON audit bundle of the…
| Parameter | Type | Description |
|---|---|---|
scope * | string | export boundary — "model" or "tag". |
scope_id * | string | id of the model or tag selected by ``scope``. |
server_version * | string | |
format | string | "csv" (default), "pdf", "html", or "archive". Tag scope requires "html"; "archive" is model-only. |
save | boolean | once done, save a model's pdf, html or archive in the exports folder (``~/.mipiti/model_exports``, or ``MIPITI_EXPORT_DIR``), filed by workspace and model and named by title, time and digest; the answ… |
get_export_status Get Export Status
The state of an export ``export_report`` started: running, or done and described. Read-only. Done, it answers the file's ``filename``, ``content_type``, ``size``, ``sha256``, ``expires_at`` and ``download_url`` (a page of the web app where a signed-in person with access to the model downloads it; give the person that link), never the file itself. Running, ``status`` and ``poll_with``. An export of another workspace, another person's, or one expired (an hour after it started) is not found.
| Parameter | Type | Description |
|---|---|---|
job_id * | string | the export's ``job_id``. |
server_version * | string | |
save | boolean | once done, save the file in the exports folder, as ``export_report`` does. The locally run package only; the hosted server refuses it. |
list_groups List Groups
List the workspace's tags. Read-only; no side effects. A tag is a named, overlapping grouping of threat models, for audit scopes, products, ad-hoc selections or portfolios. A model may carry many tags, and a tag never affects posture or credit. Returns ``{"tags": [...]}``, each with ``id``, ``name``, ``description`` and ``model_ids``. Discover tag IDs here before the tag risk, compliance, dependency or export tools, or before adding/removing members. For a single model's tags use ``list_model_groups``.
| Parameter | Type | Description |
|---|---|---|
server_version * | string |
create_group Create Group
Create a tag, optionally with its first members. Mutating. A tag groups models for viewing and reporting without asserting any relationship between them and without moving credit. Names are unique within the workspace (409 on a clash). Every model named in ``model_ids`` must be one the caller can access in this workspace.
| Parameter | Type | Description |
|---|---|---|
name * | string | the tag name (unique within the workspace). |
server_version * | string | |
description | string | optional description. |
model_ids | optional initial member model ids. |
add_model_to_group Add Model To Group
Add a threat model to a tag. Mutating. Links the model into the tag without moving or copying it; the model stays independently editable, and may belong to many tags. The model takes on the compliance frameworks the tag selected, marked as the tag's, so removing a framework from the tag removes it from the model again; a framework the model selected itself is left as it is.
| Parameter | Type | Description |
|---|---|---|
group_id * | string | ID of the tag. |
model_id * | string | ID of the threat model to add. |
server_version * | string |
get_group Get Group
Get one tag by ID, with its member model ids. Read-only; no side effects. Returns ``{id, workspace_id, name, description, created_at, model_ids}``. Discover tag IDs with ``list_groups``.
| Parameter | Type | Description |
|---|---|---|
group_id * | string | ID of the tag. |
server_version * | string |
delete_group Delete Group
Delete a tag. Mutating; the member models are not affected. The tag's framework selections, requirement exclusions and relevance data are deleted with it. Frameworks it propagated to its members stay selected on them.
| Parameter | Type | Description |
|---|---|---|
group_id * | string | ID of the tag to delete. |
server_version * | string |
remove_model_from_group Remove Model From Group
Remove a model from a tag. Mutating; the model itself is not deleted. The frameworks the tag propagated to the model stay selected on it.
| Parameter | Type | Description |
|---|---|---|
group_id * | string | the tag. |
model_id * | string | the model to remove. |
server_version * | string |
list_model_groups List Model Groups
List the tags a given model belongs to. Read-only; no side effects. A model may belong to many tags. Returns ``{model_id, tags: [...]}``. Use ``list_groups`` for every tag in the workspace.
| Parameter | Type | Description |
|---|---|---|
model_id * | string | the model whose tags to list. |
server_version * | string |
get_reachability_verdicts Get Reachability Verdicts
Per-CO reachability verdicts, over this model alone or the composed tree. Read-only; derived each time, never stored. ``composed=False`` (default): derived from this model's own structure (components, ``asset.component_ids``, ``trust_boundary.passes``, each attacker's ``trust_boundary_ids`` and vector, assumption exclusion predicates), deterministic, the derivation an auditor re-runs. ``co_id`` returns one verdict (404 if absent or tombstoned). Returns ``{model_id, model_version, verdicts: [{co_id, kind, reason, narration, boundary_id?, assumption_id?}]}``; ``kind`` is ``reachable``, ``unreac…
| Parameter | Type | Description |
|---|---|---|
model_id * | string | |
server_version * | string | |
co_id | string | |
composed | boolean | |
kind_filter | ||
page | integer | |
page_size | integer |
recompute_verdicts Recompute Verdicts
Estimate, force, or retry a model's verdict evaluation. - ``mode="quote"`` (default): read-only. The cost of a recompute, enqueueing nothing: ``{estimated_credits, computed_at, rate_version, informational, total_enqueueable, already_evaluated, governor}``. Subjects already carrying a verdict cost nothing, so it is an upper bound. Show the operator this number before recomputing: on a large model it runs to thousands of credits. - ``mode="recompute"``: mutating. Queues a fresh evaluation of every control's coverage verdict and every live objective's group-sufficiency verdict, byp…
| Parameter | Type | Description |
|---|---|---|
model_id * | string | |
server_version * | string | |
mode | string |
judge_objective Judge Objective
Have one control objective's mitigation group judged. Mutating — queues background work and may consume credits. Use this for an objective whose ``risk_reason`` is ``awaiting_judgement``: it has a built mitigation group and nothing has decided whether that group covers the objective — never evaluated, evaluated against inputs that have since changed, or the answer parked. The objective is not short of controls, so generating or implementing more will not move it; what is missing is the judgement. **This is not a repair.** The judgement can come back insufficient, which moves the objectiv…
| Parameter | Type | Description |
|---|---|---|
co_id * | string | ID of the control objective to have judged (e.g. "CO5"). |
model_id * | string | ID of the threat model. |
server_version * | string |
list_reconciliation_candidates List Reconciliation Candidates
Entities a child model authored that look like ones it inherits. Read-only. Use on a child model in a recursive tree to find duplicates before they distort coverage; decide each with ``decide_reconciliation_candidate``. - ``disposition="active"`` (default): the open queue, paginated (``page``, ``page_size``). ``{model_id, flag_enabled, total, tiers: {certain, heuristic}, page, page_size, candidates: [{kind, own_qid, inherited_qid, tier, reasons}]}``. Tier ``certain`` is a deterministic match, safe to apply; ``heuristic`` is a fuzzy name/description match that needs review. Rejected…
| Parameter | Type | Description |
|---|---|---|
model_id * | string | |
server_version * | string | |
disposition | string | |
page | integer | |
page_size | integer |
undo_composition_event Undo Composition Event
Preview, and on confirmation apply, the undo of a lift or split. ``event_type`` is ``lift`` or ``split``; ``event_id`` is the forward ``lift_applied`` / ``split_applied`` activity event's id, or the ``lift_id`` / ``split_id`` in its payload. ``model_id`` is the model the event was raised on (another model's event is 404). By default (``dry_run=True``) it is read-only: ``{plan, refusal}``, exactly one non-null. ``plan`` lists the inverse operations an undo would commit (lift: tombstone the LCA entity, restore the source copies, rewrite CO references; split: restore at the ancestor, tombstone…
| Parameter | Type | Description |
|---|---|---|
event_id * | string | |
event_type * | string | |
model_id * | string | |
server_version * | string | |
dry_run | boolean |
get_functional_objectives Get Functional Objectives
List a model's functional objectives, or fetch one by id. Read-only; no side effects. A functional objective is a Capability × Condition test plan expressed as a Given-When-Then statement. ``functional_objective_id`` selects the behaviour: - omitted / empty string -> list every functional objective for the model (the full functional test plan). - a functional-objective id -> return just that one objective's detail, including its capability, condition, Given-When-Then statement, and current test state. For pass/fail coverage state across all objectives use ``get_functional_coverage``;…
| Parameter | Type | Description |
|---|---|---|
model_id * | string | ID of the threat model whose functional objective(s) to read. |
server_version * | string | |
functional_objective_id | string | Optional. Omit (or pass "") to list every objective; pass an id (from a prior list call) to fetch that one. |
get_controls Get Controls
A model's controls, or one control. Read-only. Without ``control_id``: ``{controls, total, returned}``, the published set, filtered by ``status``, ``co_id`` and ``component_id`` and paged by ``offset`` / ``limit``. Orphaned controls (every mapped CO tombstoned) are left out unless ``include_orphaned=True``, soft-deleted ones unless ``include_deleted=True``. ``summary_only=True`` returns only id, description, status, verification_status, assertion_count, co_ids, assumption_groups and attestation_dependency. An empty list on a new model means its proposed build was never started (``get_control_…
| Parameter | Type | Description |
|---|---|---|
model_id * | string | |
server_version * | string | |
co_id | ||
component_id | ||
control_id | ||
include_deleted | boolean | |
include_need | boolean | |
include_orphaned | boolean | |
limit | integer | |
offset | integer | |
status | ||
summary_only | boolean | |
version | integer |
get_control_objectives Get Control Objectives
Get the control objective matrix, or one control objective. Read-only. Two modes, selected by whether ``co_id`` is set: - **Matrix mode** (``co_id`` omitted) — returns the model's COs, each with references to the controls that cover it. By default returns a compact summary (total count only); pass ``offset``/``limit`` to page through full CO records. - **Single mode** (``co_id`` set) — returns that one CO's typed fields, the IDs of any controls that map to it, and the deterministic reachability verdict (the structural derivation that backs any reach claim on the CO). Tombsto…
| Parameter | Type | Description |
|---|---|---|
model_id * | string | ID of the threat model. |
server_version * | string | |
co_id | If set, single mode — return this one control objective (e.g. ``CO3``) with its verdict. If omitted, matrix mode. | |
limit | integer | Matrix mode — max to return (0 = summary only, no per-CO records). |
offset | integer | Matrix mode — skip the first N control objectives. |
get_objective_grouping Get Objective Grouping
What grouping a model's objectives by asset groups would do, before it is done. Read-only: the groups are formed on a copy, and nothing is written or judged. Assets that are the same for every objective (the same security properties, impact, components, exposure and split knowledge) can be judged together: one objective per group and attacker instead of one per asset. Each asset keeps its id and stays in the inventory, marked with its group. Returns ``grouped`` (whether the model's objectives are grouped now), ``available`` (whether grouping may be turned on for this model), ``groups`` (each…
| Parameter | Type | Description |
|---|---|---|
model_id * | string | ID of the threat model. |
server_version * | string |
set_objective_grouping Set Objective Grouping
Group a model's objectives by asset groups, or stop grouping them. Mutating; creates a model version. Calls no model, so nothing is estimated: the judgements the new version re-keys are queued as for any edit. Read ``get_objective_grouping`` first, relay the groups and the objective counts to the person, and pass the ``model_version`` it returned: a model that moved since is refused 409 ``review_stale``. Grouping is refused 409 ``behavioural_off`` where ``get_objective_grouping`` reports ``available`` false; stopping is never refused for it. The write gate refuses it while a control build hol…
| Parameter | Type | Description |
|---|---|---|
enabled * | boolean | ``true`` to group, ``false`` to stop grouping. |
model_id * | string | ID of the threat model. |
model_version * | integer | The version read with ``get_objective_grouping``. |
server_version * | string |
assign_to_components Assign To Components
Replace an asset's or a control's component scope. Mutating. Components are the canonical bridge between security architecture (trust boundaries) and code organization (repos). ``target_type`` selects what is being scoped: - ``"control"`` — replace a control's component scope. A control scoped to one or more components is visible to coding agents working in those repos (matched via Component.repo_url + Component.path); an unscoped control is visible everywhere. Use when wiring a previously unscoped control to the component(s) that implement it, adding a second component to a cros…
| Parameter | Type | Description |
|---|---|---|
change_reason * | string | Why this scope is appropriate (min 10 chars). Captured in the version history. |
component_ids * | string | Comma-separated component IDs (e.g., "CMP1,CMP2"). Empty string = unscoped (a control becomes visible to every coding agent; an asset loses its explicit code-ownership binding). Every supplied ID must… |
model_id * | string | ID of the threat model. |
server_version * | string | |
target_id * | string | ID of the asset or control to scope (must match ``target_type``). |
target_type * | string | Either "asset" or "control" — which entity to scope. |
get_scan_prompt Get Scan Prompt
Get guidance prompts for scanning a codebase. Read-only; no side effects. ``kind`` selects which scan brief to return: - ``"security"`` (default) — prompts telling the agent what evidence to look for per security control; only NOT_IMPLEMENTED controls are included (implemented ones need no scan). Use this to drive a gap-discovery pass, then record what is missing with ``submit_findings`` and what is present with ``submit_assertions``. Pass ``control_id`` to scope the prompt to one control; empty (default) returns prompts for all not-yet-implemented controls. - ``"functional"``…
| Parameter | Type | Description |
|---|---|---|
model_id * | string | ID of the threat model. |
server_version * | string | |
control_id | string | Security kind only — optional single control to scope the prompt to. Empty (default) returns prompts for all not-yet-implemented controls. Ignored when kind="functional". |
kind | string | "security" (default) or "functional" — which scan brief. |
set_control_objective_cal Set Control Objective Cal
Set the per-CO ISO/SAE 21434 Cybersecurity Assurance Level (CAL). CAL is a 1-4 grade on each individual control objective that expresses how much assurance the control program owes for that specific objective. It lives on the ``control_objectives`` identity side-table — writes do NOT create a new threat-model version, and the value survives soft-delete + revival of the CO. Pass ``cal=None`` (or omit it) to clear the value.
| Parameter | Type | Description |
|---|---|---|
co_id * | string | Control-objective ID (e.g. ``CO3``). |
model_id * | string | ID of the threat model. |
server_version * | string | |
cal | ISO/SAE 21434 CAL grade (1-4), or ``None`` to clear. |
revalidate_entity_quality Revalidate Entity Quality
Re-run quality validation on a threat model's existing assets and attackers, as if they were freshly generated. A fast first-pass check judges every entity; only the ones it flags get a deeper review that confirms them, sharpens their wording, or flags them for you. Use this to apply validation improvements to an already-generated model, or to clear stale quality warnings — without regenerating the whole model (which would destroy controls, assertions, and components). It is non-destructive: an entity that should be removed is left in place with a quality warning rather than deleted, so no…
| Parameter | Type | Description |
|---|---|---|
model_id * | string | ID of the threat model whose assets and attackers to re-validate. |
server_version * | string |
auto_remediate_compliance Auto Remediate Compliance
Automatically close compliance gaps for a framework. Requires PRO tier. Three-phase loop: (1) auto-map existing controls to unmapped requirements, (2) exclude requirements for non-applicable taxonomy primitives, (3) suggest and apply new assets/attackers for remaining gaps. Phase (3) routes every proposal whose name matches a soft-deleted asset/attacker through the same restore-candidate LLM gate ``add_asset`` uses, so reanimating a previously removed entity reinstates its stable ID and every CO tombstone + control tied to it (rather than spawning a duplicate fresh ID). The response distingu…
| Parameter | Type | Description |
|---|---|---|
framework_id * | string | ID of the compliance framework. |
model_id * | string | ID of the threat model. |
server_version * | string |
get_control_work_order Get Control Work Order
The work order for one control: the ticket to read BEFORE implementing it. Read-only. Returns ``{model_id, model_version, control, objectives, max_tier, scan_brief, assertion_contract, acceptance_criteria, required_evidence, steps, reconcile_rules, delegation, open_proposals, provenance}``: where to look, what counts as proof (``assertion_contract``: the types by soundness class, the evidence and ``universal_rule``, the ``sound_types`` the platform takes, what to submit with, when the control counts as verified), what to do when the code disagrees with the model, what this agent may decide al…
| Parameter | Type | Description |
|---|---|---|
control_id * | string | |
model_id * | string | |
server_version * | string |
reconcile_model Reconcile Model
Reconcile a threat model with the code it describes. Call this after reading the code and before (or instead of) editing the model by hand: report what changed and what you observed, and the platform decides the consequence of each observation. Mutating only where the platform applies an observation (see below). Two inputs, both optional: - ``changed_paths``: the file paths that changed since the model's recorded commit. For a code-derived model compute them with ``git diff --name-only <commit_sha>..HEAD`` (the ``commit_sha`` from the model's provenance). The platform maps them onto co…
| Parameter | Type | Description |
|---|---|---|
model_id * | string | ID of the threat model. |
server_version * | string | |
changed_paths | Comma- or newline-separated file paths that changed since the model's recorded commit. Empty/None skips path mapping (``changed_paths`` in the response is then null). | |
observations | JSON string of an **array** of observation objects, each ``{kind, subject_id?, evidence?: {paths?: [], symbols?: [], note?: ""}, proposal?: {name, repo_url?, path?, trust_boundary_ids?}, quote?, claim… | |
repo_url | string | Repository the paths belong to (optional; helps map paths in multi-repo models). |
create_proposal Create Proposal
Raise a proposal to change a model's scope or design. Call this when the code or your analysis says the model should gain or lose a component, or that an attacker position or asset should be removed by design; do not edit the model directly for those changes. Mutating: persists a proposal record. A proposal is a change of scope or design. Raising one is not deciding it: a person (or an agent under a delegation rule that names the decision) decides it with ``decide_proposal``. Design changes are never applied automatically. Poll ``list_proposals`` for the outcome.
| Parameter | Type | Description |
|---|---|---|
kind * | string | One of ``add_component`` (payload ``{name, repo_url?, path?, trust_boundary_ids?}``), ``remove_component`` (payload ``{component_id}``), ``design_change`` (payload ``{target_kind: "attacker"|"asset",… |
model_id * | string | ID of the threat model. |
payload * | string | JSON object string with the fields for ``kind``. |
rationale * | string | Why this change is right (what in the code or design supports it). |
server_version * | string | |
evidence | string | Optional JSON object string, e.g. ``{paths: [], symbols: [], note: ""}``, pointing at what you saw. |
list_proposals List Proposals
List proposals and escalations on a model. Call this to poll the outcome of a proposal you raised, or of a judgment you were refused. Read-only; no side effects. Statuses: ``proposed`` and ``applied_pending_review`` are open; ``accepted``, ``rejected``, ``reverted``, ``superseded`` are closed. Kinds include ``add_component``, ``remove_component``, ``design_change``, ``assumption``, and ``decision_request``: an escalation of a judgment this agent was refused. A 403 from ``update_finding``, ``create_risk_acceptance``, ``submit_attestation`` or ``decide_proposal`` carries an ``escalation_id``; t…
| Parameter | Type | Description |
|---|---|---|
model_id * | string | ID of the threat model. |
server_version * | string | |
status | string | Optional status filter (one of the values above). Empty (default) returns every proposal. |
get_review_playbook Get Review Playbook
How to work this model's review queue, in one read: start here. Read it before deciding anything on the model, and again after a round of work. Read-only on the model; it opens a review run for you (or reuses your open one), which every later write to the model is recorded under. It returns: - ``procedure``: the order of work, the rules, how each kind of review-queue item is worked (what to verify, where, and which tool acts on each outcome) and the report's shape. Follow it. - ``open``: the model's open items by kind, in the queue's order, with their ids, decision counts, tools, and wh…
| Parameter | Type | Description |
|---|---|---|
model_id * | string | ID of the threat model. |
server_version * | string |
close_review_run Close Review Run
Close your review run on the model with your notes, and get its digest to give the person: what the run decided and on what evidence, what it parked for them, what it spent, your notes beside them, and the act that undoes each decision. The digest is read from the platform's records, not from your notes. Mutating: records the run's end.
| Parameter | Type | Description |
|---|---|---|
model_id * | string | ID of the threat model. |
server_version * | string | |
notes | string | What you did and why, in your words (shown as yours). |
run_id | string | The run to close. Empty (default): your open run. |
get_review_run Get Review Run
A review run's digest: what it decided and on what evidence, what it parked, what it spent, its notes, and the undo of each decision (offered while that decision is still the latest of its subject). Read-only.
| Parameter | Type | Description |
|---|---|---|
model_id * | string | ID of the threat model. |
server_version * | string | |
run_id | string | The run. Empty (default): your open run, else the model's runs, newest first. |
decide_proposal Decide Proposal
Accept or reject a proposal, or reconsider a rejected one. Call this only when the workspace's delegation policy names this decision for this agent at the proposal's tier (the ``delegation`` block of ``get_control_work_order`` says what you may decide). Mutating: closes the proposal and applies an accepted change; a reconsider opens a rejected proposal again and applies nothing. This is a judgment. The call is refused with HTTP 403 and an ``escalation_id`` unless the delegation policy permits it; the refusal parks the decision for a person as a ``decision_request``. Do not retry a refusal: re…
| Parameter | Type | Description |
|---|---|---|
decision * | string | ``accept``, ``reject`` or ``reconsider``. |
model_id * | string | ID of the threat model. |
proposal_id * | string | ID of the proposal to decide. |
server_version * | string | |
accept_removals | string | For accepting a behavioural proposal: comma-separated ids of every element whose removal or supersession it lists. |
amended_text | string | Wording the accepted assumption takes (at most 1000 characters). Only with ``decision="accept"`` on an ``assumption`` proposal. Empty (default) keeps the proposal's wording. |
evidence | string | JSON array of the citations this judgment rests on (at most 20, each at most 2000 characters): {"kind": "code", "path", "lines"?, "commit"?}, {"kind": "url", "url", "lines"?} or {"kind": "quote", "sou… |
expires_at | string | ISO 8601 date an accepted assumption lapses (e.g. "2027-03-29T00:00:00Z"). Applies to accepting an ``assumption`` proposal; omitted, the acceptance lasts a year. |
model_version | integer | For a behavioural model's proposal (an id starting ``bp-``): the model version it was read over, required. Accept is its acceptance, reject its decline, reconsider withdraws a decline. |
note | string | Optional note recorded with the decision. |
record_only | boolean | Accepting parked answers to behavioural questions starts the extraction they complete, billed to whoever accepts; True records them without it. Default False. |
decide_proposals Decide Proposals
Decide several proposals and escalations of one model together (at most 200), each exactly as ``decide_proposal`` decides one, in its own transaction, in the order given: one refused leaves the others decided. Mutating; each is a judgment under the same delegation rules, and a program refused one gets that item's refusal (its ``escalation_id``) beside the others' outcomes. Use it to clear a review queue's parked decisions in one call rather than one at a time: the batch runs as a job on the server, reported here as each item is decided, so a batch of any length is answered whole. Should this c…
| Parameter | Type | Description |
|---|---|---|
decisions * | string | JSON array of ``{"proposal_id", "decision"}``, each decision ``accept``, ``reject`` or ``reconsider`` (a rejected proposal opened again, as on ``decide_proposal``). Amended wording is accepted one at… |
model_id * | string | ID of the threat model. |
server_version * | string | |
evidence | string | JSON array of the citations this judgment rests on (at most 20, each at most 2000 characters): {"kind": "code", "path", "lines"?, "commit"?}, {"kind": "url", "url", "lines"?} or {"kind": "quote", "sou… |
expires_at | string | ISO 8601 date accepted assumptions lapse (as on ``decide_proposal``). |
note | string | Optional note recorded with each decision. |
record_only | boolean | As on ``decide_proposal``, for every item. |
decide_drift_intent Decide Drift Intent
Decide whether a description-drift finding (the code reported to do more, or less, than a sentence of the description) was intended or is a defect of the code. Mutating; a judgment. ``intended``: the description is behind the product; revise it (``create_proposal`` kind ``description_revision``). ``defect``: the description is the design and the code is wrong; name in ``control_id`` the control whose assertions check the behaviour as designed. The finding closes when one of its assertions passes verification at a commit not earlier than this decision, and while it stands an answer that would…
| Parameter | Type | Description |
|---|---|---|
finding_id * | string | The description-drift finding (``list_findings``). |
intent * | string | ``intended`` or ``defect``. |
model_id * | string | ID of the threat model. |
server_version * | string | |
control_id | string | For a defect, the control whose passing assertion closes it. |
evidence | string | JSON array of the citations this judgment rests on (at most 20, each at most 2000 characters): {"kind": "code", "path", "lines"?, "commit"?}, {"kind": "url", "url", "lines"?} or {"kind": "quote", "sou… |
head_commit | string | The commit you read the code at. |
note | string | Why. |
get_design_leverage Get Design Leverage
Rank what eliminating each attacker position or asset BY DESIGN would remove from the matrix. Call this when deciding whether to change the design instead of implementing controls: it shows which single design change retires the most critical and high at-risk objectives. Read-only; no side effects. Each row in ``ranked`` is an attacker or asset with the objectives its removal would take out of the matrix (``objectives_removed``, broken down by tier in ``removes``), how many of those are currently at risk (``removes_at_risk`` / ``removes_at_risk_by_tier``), and the controls that would be retir…
| Parameter | Type | Description |
|---|---|---|
model_id * | string | ID of the threat model. |
server_version * | string | |
include_design_moves | boolean | Also author a ``design_move`` per row. Default False. |
top | integer | Number of rows to return. Default 5. |
list_decisions List Decisions
List the decision ledger of a model: every judgment recorded on it (finding dismissed or remediated, risk accepted, not-applicable declared, proposal accepted / rejected / reverted, assumption accepted, behavioural model answered / confirmed, a control's delta declared, a finding of its cross-check dismissed, a seal, position, privileges or surface extent attested, escalation resolved, an inventory pair decided or an entity's tags declared), newest first, with who made it and whether it was within the workspace's delegation policy. Read-only; no side effects. Call this BEFORE raising a propos…
| Parameter | Type | Description |
|---|---|---|
model_id * | string | ID of the threat model. |
server_version * | string | |
agent_only | boolean | Only decisions made by a program (``agent`` not null). Default False. |
decision | string | Optional kind filter: a kind as the ledger records it, the ``decision`` of a returned item (for example ``finding_dismissed``, ``risk_accepted``, ``behavioural_model_answered``, ``behavioural_model_co… |
limit | integer | Maximum rows to return. 0 (default) uses the server default. |
outside_policy_only | boolean | Only decisions made outside the delegation policy in force at the time (``within_policy`` false). Default False. |
get_behavioural_model Get Behavioural Model
Read a model's behavioural model: what the system does, as elements, actions and zones taken from its description. Read-only. ``status``: ``none`` (``extract_behavioural_model`` gives it one), ``needs_answers``, ``extracted``, ``confirmed``, ``stale`` (the description changed since) or ``extracting``. ``questions`` are the open ones, answered with ``answer_behavioural_questions``; one carrying ``structured`` takes a structured answer, one with ``awaiting_fix`` was answered. Each carries ``structured_forms``. ``pending_answers``: collected, not extracted. ``ir_hash`` is what ``confirm_behaviou…
| Parameter | Type | Description |
|---|---|---|
model_id * | string | ID of the threat model. |
server_version * | string | |
limit | integer | the paged views only. |
offset | integer | the paged views only. |
view | string | ``full`` (default), ``status``, ``questions``, ``answers`` or ``regeneration_reading``. |
wait_seconds | integer | 0 (default) answers at once. |
extract_behavioural_model Extract Behavioural Model
Give a model that has no behavioural model one. Mutating only with ``confirm_estimate=True``; a paid action then. The extraction is paid for by whoever requests it, so it is estimated first and the estimate is RELAYED TO THE PERSON before it is confirmed. Never confirm on your own. 1. Call with ``confirm_estimate=False`` (the default): nothing is charged or written. The answer carries the ``estimate`` (the extraction, the existing controls' deltas and checks, the link-matching call and the re-judgement, by part), the ``model_version`` and ``set_revision`` the model stands at, and…
| Parameter | Type | Description |
|---|---|---|
model_id * | string | ID of the threat model. |
server_version * | string | |
confirm_estimate | boolean | False (default) estimates; True extracts. |
model_version | With ``confirm_estimate=True``: the estimate's value. | |
set_revision | With ``confirm_estimate=True``: the estimate's value. |
regenerate_behavioural_model Regenerate Behavioural Model
Check a model's behavioural model against its description with an independent reading. Mutating only with ``confirm_estimate=True``; a paid action then. A regeneration reads the description and every answer that stands afresh, shown nothing of the model, and compares that reading with the model part by part. It writes nothing to the model: each difference is listed against the answer that settled the part, or asked as a question (answer those with ``answer_behavioural_questions``). It is paid for by whoever requests it (or by Mipiti, where it says so): the estimate is RELAYED TO THE PERSON be…
| Parameter | Type | Description |
|---|---|---|
model_id * | string | ID of the threat model. |
server_version * | string | |
confirm_estimate | boolean | False (default) estimates; True queues it. |
model_version | With ``confirm_estimate=True``: the estimate's value. |
reread_behavioural_description Reread Behavioural Description
Re-read the description changes nothing has read into a model's behavioural model yet. Mutating only with ``confirm_estimate=True``; a paid action then. For when ``get_behavioural_model`` reports ``waiting_on: "reread"``: a description change was saved, but its re-reading did not run (the balance or the workspace's allowance did not cover it at the change, or it stopped part-way past its automatic retries). ``description_reread`` on the read says why, how many changes are owed and the estimate. 1. Call with ``confirm_estimate=False`` (the default): nothing is charged or written. The answe…
| Parameter | Type | Description |
|---|---|---|
model_id * | string | ID of the threat model. |
server_version * | string | |
confirm_estimate | boolean | False (default) estimates; True queues it. |
model_version | With ``confirm_estimate=True``: the estimate's value. |
answer_behavioural_questions Answer Behavioural Questions
Answer open behavioural questions, many in one call. Mutating; creates a model version. Answer only from what the code or the owner shows; else ``unknown``. With no behavioural model yet, an extraction runs once every holding question is answered, or on ``extract_now``, billed as ``billed_to`` says (409 ``extraction_running``: poll). With one, ``extract_now`` alone is a regeneration estimate. ``collect_only`` starts no extraction; ``dry_run=True`` records nothing. A fact correcting earlier answers names their ids in ``replaces``; none is read again. ``premise: true`` records a fact as a premi…
| Parameter | Type | Description |
|---|---|---|
model_id * | string | ID of the threat model. |
server_version * | string | |
answers | string | JSON array of ``{"question_id", "text"?, "disposition"?, "structured"?, "contradicts"?, "replaces"?, "beyond_structure"?, "premise"?}``, e.g. '[{"question_id": "q1", "text": "Only the owner deletes.",… |
collect_only | boolean | Start no extraction (words are read anyway over a model with one); not with extract_now. |
dry_run | boolean | Return what the answers would do (``outcome``) and record nothing. Default False. |
evidence | string | JSON array of the citations this judgment rests on (at most 20, each at most 2000 characters): {"kind": "code", "path", "lines"?, "commit"?}, {"kind": "url", "url", "lines"?} or {"kind": "quote", "sou… |
extract_now | boolean | Extract now, with the answers collected. |
edit_behavioural_element Edit Behavioural Element
Replace, or add, one element of a model's behavioural model. Mutating; creates a model version (none when the edit changes nothing). The element is kept as a person wrote it, so a later extraction keeps it. It changes the model's ``ir_hash``, which voids a confirmation: confirm again with ``confirm_behavioural_model``. The result must still be a valid model (422 otherwise), and a build holding the model refuses it (409). A program's edit is a judgment. Unless the workspace's delegation policy admits it, it is refused with 403 and an ``escalation_id`` and parked for a person. Do not retry: re…
| Parameter | Type | Description |
|---|---|---|
collection * | string | The collection of ``get_behavioural_model``'s ``ir`` the element belongs to. |
element * | string | JSON object, the whole element including its ``id``; it replaces the element of that id, or adds one. |
model_id * | string | ID of the threat model. |
server_version * | string | |
dry_run | boolean | Write nothing and return what the edit would close and raise. Default False. |
evidence | string | JSON array of the citations this judgment rests on (at most 20, each at most 2000 characters): {"kind": "code", "path", "lines"?, "commit"?}, {"kind": "url", "url", "lines"?} or {"kind": "quote", "sou… |
model_version | The model version the element was read at. Optional; when given, the edit is refused if the element changed since. |
remove_behavioural_element Remove Behavioural Element
Remove an element of a model's behavioural model that the system does not have (an extraction read something the system does not hold, or put it where it is not). Mutating; creates a model version. The removal is recorded beside the model, and every later extraction withholds what it reads back of the element, under its id or another. Only an element nothing else names can be removed: one an action, a channel, a copy, a claim or a zone placement still names is refused 409 ``referenced``, naming them; edit or remove those first. An element the model lacks is 404 ``unknown_element``. The remova…
| Parameter | Type | Description |
|---|---|---|
collection * | string | The collection of ``get_behavioural_model``'s ``ir`` the element belongs to. |
element_id * | string | The element's ``id``. |
model_id * | string | ID of the threat model. |
server_version * | string | |
evidence | string | JSON array of the citations this judgment rests on (at most 20, each at most 2000 characters): {"kind": "code", "path", "lines"?, "commit"?}, {"kind": "url", "url", "lines"?} or {"kind": "quote", "sou… |
release_behavioural_element Release Behavioural Element
Release an element held as written (its ``rank`` is ``declared``), so the next extraction reads it again from the description and the answers that stand. Mutating; creates a model version. An element is held as written when a person or an accepted edit wrote it, or an earlier structured answer fixed it in place. No extraction changes it, so a correcting answer never reaches it; a question of closure ``held`` asks for this or an edit. Release it where the answers that stand should decide it; edit it instead where it holds something an accepted assumption or a person wrote that no answer states…
| Parameter | Type | Description |
|---|---|---|
collection * | string | The collection of ``get_behavioural_model``'s ``ir`` the element belongs to. |
element_id * | string | The element's ``id``. |
model_id * | string | ID of the threat model. |
server_version * | string | |
evidence | string | JSON array of the citations this judgment rests on (at most 20, each at most 2000 characters): {"kind": "code", "path", "lines"?, "commit"?}, {"kind": "url", "url", "lines"?} or {"kind": "quote", "sou… |
release_behavioural_elements Release Behavioural Elements
Release several elements held as written in one model version, as ``release_behavioural_element`` releases one. Mutating; creates one model version for the whole batch. Use it when several questions of closure ``held`` ask for a release: the model's questions are computed once, after every element is released, where releasing one at a time writes a version and raises questions after each. ``elements`` is a JSON array of ``{"collection": ..., "element_id": ...}`` (at most 200). ``results`` answers each element in order: ``released``, or why it was not: ``not_declared`` (nothing holds it, so th…
| Parameter | Type | Description |
|---|---|---|
elements * | string | JSON array of the elements to release. |
model_id * | string | ID of the threat model. |
server_version * | string | |
evidence | string | JSON array of the citations this judgment rests on (at most 20, each at most 2000 characters): {"kind": "code", "path", "lines"?, "commit"?}, {"kind": "url", "url", "lines"?} or {"kind": "quote", "sou… |
confirm_behavioural_model Confirm Behavioural Model
Confirm a model's behavioural model as reviewed. Mutating; creates a model version. A paid action where a regeneration is owed before certification. Confirm only the model whose ``ir_hash`` was reviewed, which is the one ``get_behavioural_model`` returns. Refused with 409: ``review_stale`` (the model is not that hash now, or its version moved since the estimate), ``stale`` (the description changed since it was extracted), ``needs_answers`` (an owner question is open) or ``extraction_running`` (a job of the model is queued or running: poll it). An edit voids a confirmation. Where a regenerati…
| Parameter | Type | Description |
|---|---|---|
ir_hash * | string | The ``ir_hash`` reviewed. |
model_id * | string | ID of the threat model. |
server_version * | string | |
confirm_estimate | boolean | False (default) estimates where an estimate is owed; True confirms and accepts it. |
evidence | string | JSON array of the citations this judgment rests on (at most 20, each at most 2000 characters): {"kind": "code", "path", "lines"?, "commit"?}, {"kind": "url", "url", "lines"?} or {"kind": "quote", "sou… |
model_version | With ``confirm_estimate=True``: the version the estimate named. | |
note | string | Optional note recorded with the confirmation. |
accept_behavioural_proposal Accept Behavioural Proposal
Accept a proposal for a model's behavioural model. Mutating; creates a model version. Accepting lands only the proposal's part changes, over the version it was made on (``model_version``), never whole elements. The proposal's accept step leaves ``accept_removals`` empty: add each element its ``must_accept`` lists only once the person agrees to give it up; one left out is refused 409 ``removal_not_accepted``, naming it, and nothing is given up. 409 ``review_stale`` means the version moved: read the model again with ``get_behavioural_model`` and accept the fresh proposal. 404 ``proposal_not_fou…
| Parameter | Type | Description |
|---|---|---|
model_id * | string | ID of the threat model. |
model_version * | integer | The version the proposal was made on. |
proposal_id * | string | ID of the proposal. |
server_version * | string | |
accept_removals | string | JSON array of the element ids whose removal or supersede is accepted, e.g. '["copies"]'; '[]' when it lists none. |
evidence | string | JSON array of the citations this judgment rests on (at most 20, each at most 2000 characters): {"kind": "code", "path", "lines"?, "commit"?}, {"kind": "url", "url", "lines"?} or {"kind": "quote", "sou… |
note | string | Optional note recorded with the acceptance. |
decline_behavioural_proposal Decline Behavioural Proposal
Decline a proposal for a model's behavioural model. Mutating; writes nothing to the model. Declining says the proposal is not what the system does, without saying what is: the proposal is not offered again while it is unchanged, and its question stays open, to be kept, answered or edited. Decline only where the source shows the proposal wrong; where it shows the model right, keep it (answer ``as_stated``) instead. Only a person can offer a declined proposal again. 409 ``review_stale`` means the version moved: read the model again with ``get_behavioural_model``. 404 ``proposal_not_found``. Th…
| Parameter | Type | Description |
|---|---|---|
model_id * | string | ID of the threat model. |
model_version * | integer | The version the proposal was made on. |
proposal_id * | string | ID of the proposal. |
server_version * | string | |
evidence | string | JSON array of the citations this judgment rests on (at most 20, each at most 2000 characters): {"kind": "code", "path", "lines"?, "commit"?}, {"kind": "url", "url", "lines"?} or {"kind": "quote", "sou… |
note | string | Why it is declined, recorded with the decline. |
get_behavioural_links Get Behavioural Links
Read the links from a behavioural model's elements and zones to the model's assets and trust boundaries. Read-only; no side effects. Returns ``{nodes, links, proposals, proposals_hash, questions, repair}``: each link says whether it counts toward the analysis; ``proposals`` are matches a person is shown (an empty ``entity_id`` is a node nothing matched); ``proposals_hash`` is what ``accept_behavioural_link_proposals`` names; ``questions`` are the open link questions (also on ``get_review_queue`` as ``behavioural_link`` rows). A link is declared for one node with ``declare_behavioural_link``.
| Parameter | Type | Description |
|---|---|---|
model_id * | string | ID of the threat model. |
server_version * | string |
declare_behavioural_link Declare Behavioural Link
Declare the asset or trust boundary a behavioural element or zone is. Mutating; creates no model version. The link is checked on every read: one whose asset lacks the property the element carries is kept and asked about. A link that counts changes what the analysis reaches, so the judgements it re-keys are queued, charged to the caller. A program's declaration is a judgment. Unless the workspace's delegation policy admits it, it is refused with 403 and an ``escalation_id`` and parked for a person. Do not retry: report the ``escalation_id`` and poll ``list_proposals``. Returns ``{model_id, m…
| Parameter | Type | Description |
|---|---|---|
entity_id * | string | The asset or trust boundary it is. |
model_id * | string | ID of the threat model. |
node_id * | string | The element or zone, from ``get_behavioural_links``. |
server_version * | string | |
component_id | string | Optional component the node belongs to. |
evidence | string | JSON array of the citations this judgment rests on (at most 20, each at most 2000 characters): {"kind": "code", "path", "lines"?, "commit"?}, {"kind": "url", "url", "lines"?} or {"kind": "quote", "sou… |
match_behavioural_links Match Behavioural Links
Match the behavioural elements and zones never matched against the inventory (``never_matched`` on ``get_behavioural_links``: added by an answer or an edit after the model was matched). A paid action. Without ``confirm_estimate``: the nodes and the estimate, nothing charged or written. RELAY THE ESTIMATE TO THE PERSON and confirm only when they agree. With it: runs the matching call, charged to the caller at actuals (402 when they cannot cover it), and stores a proposal per node; it declares nothing, so review the proposals with ``get_behavioural_links`` and accept them with ``accept_behaviou…
| Parameter | Type | Description |
|---|---|---|
model_id * | string | ID of the threat model. |
server_version * | string | |
confirm_estimate | boolean | True to run the match after the person agreed to the estimate. |
accept_behavioural_link_proposals Accept Behavioural Link Proposals
Declare every link proposal as shown, in one act. Mutating; creates no model version. Relay the proposals to the person first: read them with ``get_behavioural_links`` and name its ``proposals_hash``, which is the set reviewed. Refused with 409 ``review_stale`` when a proposal has changed since, and with 422 ``no_proposals`` when there is none. The judgements the links re-key are queued, charged to the caller. A program's acceptance is a judgment. Unless the workspace's delegation policy admits it, it is refused with 403 and an ``escalation_id`` and parked for a person. Do not retry: report…
| Parameter | Type | Description |
|---|---|---|
model_id * | string | ID of the threat model. |
proposals_hash * | string | The ``proposals_hash`` reviewed. |
server_version * | string | |
evidence | string | JSON array of the citations this judgment rests on (at most 20, each at most 2000 characters): {"kind": "code", "path", "lines"?, "commit"?}, {"kind": "url", "url", "lines"?} or {"kind": "quote", "sou… |
get_behavioural_attackers Get Behavioural Attackers
Read the attacker closure of a model: the attackers its behavioural model says are missing from the inventory, and what its attackers hold. Read-only: no model is called and nothing is written. Returns ``{applies, credential_classes, proposals, dismissed, dismissed_zones, reported, splits, dismissed_splits, questions}``. ``applies`` is false where the closure is not offered (a model with no inventory, or whose behavioural model decides nothing yet); ``computing`` while what the threats reach is still being analysed, when nothing is proposed. Each of ``proposals`` is an attacker no attacker of…
| Parameter | Type | Description |
|---|---|---|
model_id * | string | ID of the threat model. |
server_version * | string |
answer_attacker_credentials Answer Attacker Credentials
Say which of the behavioural model's credential classes an attacker holds. Mutating; creates a model version. Answer from what the code or the owner shows. Empty means it holds no credential. Its privileges follow from what it holds, by rule: ``None`` with none, ``High`` when a class may invoke an action that writes what decides authority, ``Low`` otherwise; ``edit_attacker`` then refuses a privileges change (409 ``privileges_from_holdings``). A holder of a per-tenant class is placed at every tenant-isolation boundary, suggested. Refused with 422 ``unknown_class`` (a class the model does not…
| Parameter | Type | Description |
|---|---|---|
attacker_id * | string | The attacker (e.g. "T3"). |
model_id * | string | ID of the threat model. |
server_version * | string | |
credential_classes | string | Comma-separated class ids from ``credential_classes``; empty for none. |
evidence | string | JSON array of the citations this judgment rests on (at most 20, each at most 2000 characters): {"kind": "code", "path", "lines"?, "commit"?}, {"kind": "url", "url", "lines"?} or {"kind": "quote", "sou… |
add_proposed_attacker Add Proposed Attacker
Add the attacker the attacker closure proposes for a credential set. Mutating; creates a model version. Name the proposal by its ``credential_classes`` as ``get_behavioural_attackers`` lists it (a dismissed one may be added), and a part of the zones nobody stands at by one of its ``zones`` where another proposal holds the same classes. The attacker holds them, with the privileges they give and no position but the tenant-isolation boundaries a per-tenant holder is placed at. It is rated as ``add_attacker`` rates: one call before the write, charged to the caller, its privileges the ones it hold…
| Parameter | Type | Description |
|---|---|---|
model_id * | string | ID of the threat model. |
server_version * | string | |
credential_classes | string | Comma-separated class ids of the proposal; empty for the one holding none. |
evidence | string | JSON array of the citations this judgment rests on (at most 20, each at most 2000 characters): {"kind": "code", "path", "lines"?, "commit"?}, {"kind": "url", "url", "lines"?} or {"kind": "quote", "sou… |
zone | string | A zone of the part to add, where two proposals hold the same classes; empty otherwise. |
dismiss_proposed_attacker Dismiss Proposed Attacker
Dismiss the attacker the attacker closure proposes for a credential set, with why, or some zones of a part of the zones nobody stands at. Mutating; creates a model version. The dismissal is kept on the model: the proposal is no longer offered while it stands. ``zones`` names zones of a part (its ``kind`` is ``grouped``) that no attacker reaches: those alone are dismissed, and the part stands for the rest; ``zone`` names the part where two proposals hold the same classes. Refused with 409 ``not_proposed`` (no attacker is proposed for exactly that set now), 409 ``ambiguous_proposal`` (name a ``…
| Parameter | Type | Description |
|---|---|---|
model_id * | string | ID of the threat model. |
reason * | string | Why the attacker does not apply (required). |
server_version * | string | |
credential_classes | string | Comma-separated class ids of the proposal; empty for the one holding none. |
evidence | string | JSON array of the citations this judgment rests on (at most 20, each at most 2000 characters): {"kind": "code", "path", "lines"?, "commit"?}, {"kind": "url", "url", "lines"?} or {"kind": "quote", "sou… |
zone | string | A zone of the part, where two proposals hold the same classes; empty otherwise. |
zones | string | Comma-separated zones of the part to dismiss alone; empty dismisses the proposal whole. |
split_grouped_attacker Split Grouped Attacker
Split an attacker that stands for zones of several capabilities into the parts ``get_behavioural_attackers`` offers under ``splits``. Mutating; creates a model version. Name each part by its ``zones`` as the offer lists them, which is the split reviewed. In one write, each part is added holding what its zones hold, its holdings attested, stating its zones, and rated as ``add_attacker`` rates (one call per part before the write, charged to the caller: ``ratings`` says how many); every control mapping of the attacker's objective of an asset moves to each part's objective of that asset with the…
| Parameter | Type | Description |
|---|---|---|
attacker_id * | string | The attacker to split (e.g. "T7"). |
model_id * | string | ID of the threat model. |
parts * | string | Each part's zones, comma-separated, the parts separated by semicolons (e.g. "host;vendor_a;partner"). |
server_version * | string | |
evidence | string | JSON array of the citations this judgment rests on (at most 20, each at most 2000 characters): {"kind": "code", "path", "lines"?, "commit"?}, {"kind": "url", "url", "lines"?} or {"kind": "quote", "sou… |
keep_attacker_whole Keep Attacker Whole
Keep an attacker offered for a split whole, with why. Mutating; creates a model version. The decision is kept on the model: the split is no longer offered while it stands, and the attacker is left as it is. Refused with 409 ``split_not_offered``, 409 ``dismissed_already``. A program's decision is a judgment. Unless the workspace's delegation policy admits it, it is refused with 403 and an ``escalation_id`` and parked for a person. Do not retry: report the ``escalation_id`` and poll ``list_proposals``. Returns ``{model_id, model_version, applies, credential_classes, counts, dismissed_split}`…
| Parameter | Type | Description |
|---|---|---|
attacker_id * | string | The attacker to keep whole. |
model_id * | string | ID of the threat model. |
reason * | string | Why it is one capability (required). |
server_version * | string | |
evidence | string | JSON array of the citations this judgment rests on (at most 20, each at most 2000 characters): {"kind": "code", "path", "lines"?, "commit"?}, {"kind": "url", "url", "lines"?} or {"kind": "quote", "sou… |
get_inventory_judgements Get Inventory Judgements
Read what the per-entity checks found about a model's inventory. Read-only: no model is called and nothing is queued. Returns ``{model_id, version, duplicates, tags}``. ``duplicates``, per kind (``assets``, ``attackers``): ``groups`` (shown as one entity: both sides' current checks say so, their texts are identical, or a person decided it), ``disputed`` and ``one_sided`` (one check says the same and the other does not, or only one side answered), ``overlaps`` (part and whole), ``decided`` (the decisions in force), ``status`` (``complete`` when every pair a check is owed for is covered, ``part…
| Parameter | Type | Description |
|---|---|---|
model_id * | string | ID of the threat model. |
server_version * | string |
request_inventory_checks Request Inventory Checks
Queue the checks a model's inventory lacks: the tag check of every entity whose tags are not current, and the duplicate check of every entry on a pair no current check covers. Mutating only with ``confirm_estimate=True``: queues paid background work then. 1. Call without ``confirm_estimate`` (the default): nothing is queued. The answer carries the ``estimate`` (``credits``, ``platform_credits``, ``by_kind``), ``billing`` and ``confirmed: false``. RELAY THE ESTIMATE TO THE PERSON; a program confirms only within its spending allowance. 2. Once they agree, call with ``confirm_estimate=T…
| Parameter | Type | Description |
|---|---|---|
model_id * | string | ID of the threat model. |
server_version * | string | |
confirm_estimate | boolean | False (default) estimates; True queues the checks. |
decide_inventory_pair Decide Inventory Pair
Decide that two entries of a model's inventory are, or are not, one entity. Mutating; creates no model version; a judgment. The decision is bound to both entries' texts: while it stands it replaces the checks' answers for the pair, and an edit of either entry voids it. ``same`` keeps the pair shown until a person removes one of the two (``remove_entity``); nothing is merged. Refused 422 ``two_elements`` for two assets that are each an element of the behavioural model (two elements are two things), 422 ``same_entity``, 404 ``unknown_entity``. A program's decision is refused with 403 and an ``…
| Parameter | Type | Description |
|---|---|---|
a * | string | One entry's id (e.g. "A-12"). |
b * | string | The other entry's id. |
entity_kind * | string | ``asset`` or ``attacker``. |
model_id * | string | ID of the threat model. |
server_version * | string | |
verdict * | string | ``same`` or ``different``. |
evidence | string | JSON array of the citations this judgment rests on (at most 20, each at most 2000 characters): {"kind": "code", "path", "lines"?, "commit"?}, {"kind": "url", "url", "lines"?} or {"kind": "quote", "sou… |
rationale | string | Why (at most 2000 characters). |
declare_inventory_tags Declare Inventory Tags
Declare the taxonomy primitives an entity of a model's inventory answers. Mutating; creates no model version; a judgment. The declaration is bound to the entity's text: it witnesses each primitive whatever the tagger answers, and an edit of the entity voids it. Every pair must be one the taxonomy admits for the kind (422 ``inadmissible_tag``); an empty list declares that the entity answers none. 404 ``unknown_entity``. A program's declaration is refused with 403 and an ``escalation_id`` unless the workspace's delegation policy names ``inventory_tag_declared``. Do not retry: report the ``esca…
| Parameter | Type | Description |
|---|---|---|
entity_id * | string | The entity (e.g. "T-04"). |
entity_kind * | string | ``asset`` or ``attacker``. |
model_id * | string | ID of the threat model. |
server_version * | string | |
evidence | string | JSON array of the citations this judgment rests on (at most 20, each at most 2000 characters): {"kind": "code", "path", "lines"?, "commit"?}, {"kind": "url", "url", "lines"?} or {"kind": "quote", "sou… |
rationale | string | Why (at most 2000 characters). |
tags | string | JSON array of ``{"primitive", "implied_type"}``. |
apply_entity_proposals Apply Entity Proposals
Accept the quality check's corrections of assets and attackers, in one new model version. Applying is accepting: a judgment normally the owner's. A program's is parked for a person (``refused``, with ``escalation_id``: do not retry) unless the workspace delegates ``entity_correction_accepted``. A doubted claim you can establish, or take conservatively, is answered with ``answer_entity_question`` instead; a property that does not apply is declared not applicable, since a correction never removes one. Read the correction as ``quality`` on ``get_entity`` (or the review queue's ``entity_quality`…
| Parameter | Type | Description |
|---|---|---|
model_id * | string | ID of the threat model. |
proposals * | string | JSON array of ``{"entity_id", "input_hash", "proposal_hash"}``, each ``input_hash`` and ``proposal_hash`` as the verdict was read. |
server_version * | string | |
evidence | string | JSON array of the citations this judgment rests on (at most 20, each at most 2000 characters): {"kind": "code", "path", "lines"?, "commit"?}, {"kind": "url", "url", "lines"?} or {"kind": "quote", "sou… |
check_entity_quality Check Entity Quality
Ask for the quality check of the assets and attackers you name (every one when you name none) that have no current verdict: an entity whose ``quality`` reads ``unchecked``, or one changed since its last check. Without ``confirm_estimate`` it only estimates; with it, the checks are queued and run in the background. Creates no model version. Checking may be paid. Call it first without ``confirm_estimate``, RELAY THE ESTIMATE TO THE PERSON, and confirm only when they agree; never confirm on your own. The answer says where each named entity stands: ``current`` (its verdict answers it as it stands…
| Parameter | Type | Description |
|---|---|---|
model_id * | string | ID of the threat model. |
server_version * | string | |
confirm_estimate | boolean | Queue the checks the estimate describes. |
entity_ids | string | JSON array of asset and attacker ids (e.g. ``["A-17", "T-04"]``); empty for every entity. |
answer_entity_question Answer Entity Question
Answer, with a fact, the flag the quality check raised about an asset or attacker. Mutating; creates no model version. An entity's ``quality`` (on ``get_entity``, the build proposal's flagged entities or the review queue's ``entity_quality`` row) carries the verdict's ``outcome`` and ``input_hash``. Any flag may be answered: ``question`` (answer its ``question``), ``defect`` or ``invalid`` (answer its ``warning``, for instance where it reads a true claim as not established and the documentation or the code establishes it). Answer from the documentation or the code, stating what the system doe…
| Parameter | Type | Description |
|---|---|---|
entity_id * | string | The asset or attacker (e.g. "T-04"). |
input_hash * | string | The verdict's ``input_hash`` as it was read. |
model_id * | string | ID of the threat model. |
server_version * | string | |
text * | string | The answer (at most 4000 characters). |
evidence | string | JSON array of the citations this judgment rests on (at most 20, each at most 2000 characters): {"kind": "code", "path", "lines"?, "commit"?}, {"kind": "url", "url", "lines"?} or {"kind": "quote", "sou… |
settle_entity_rating Settle Entity Rating
Settle the rating held pending for an asset or attacker. Mutating. A rating a person chose is never replaced by a model's: where an entity's words changed, or a re-evaluation answered over it, the model's rating is held pending beside the person's, the more severe of the two in force. ``get_entity`` serves the pair as ``rating_pending`` (the rating in force and the pending one, who chose each, the words each was made for, and ``pair_hash``); the review queue's ``rating_pending`` row lists every such entity. Settling is a judgment (``rating_reconfirmed``): a program's is parked for a person (4…
| Parameter | Type | Description |
|---|---|---|
choice * | string | ``keep_person``, ``take_model`` or ``set``. |
entity_id * | string | The asset or attacker (e.g. "A-03"). |
entity_kind * | string | ``asset`` or ``attacker``. |
model_id * | string | ID of the threat model. |
pair_hash * | string | ``rating_pending.pair_hash`` as it was read. |
server_version * | string | |
change_reason | string | Why it is settled so (kept with the decision). |
evidence | string | JSON array of the citations this judgment rests on (at most 20, each at most 2000 characters): {"kind": "code", "path", "lines"?, "commit"?}, {"kind": "url", "url", "lines"?} or {"kind": "quote", "sou… |
factors | string | For ``set``: a JSON object of the rating's factors (an asset's subscores, blast radius, recoverability and regulatory scope; an attacker's attack vector, privileges required, attack complexity, user i… |
rationale | string | For ``set``: why the rating is what it is. |
get_control_delta Get Control Delta
Read the delta of a control: the edits to the behavioural model that the control's own text commits to. Read-only; no side effects. The delta is served for the control's text as it stands. ``status`` is ``absent`` (none), ``pending`` (not checked yet), ``checked``, ``failed`` or ``declared`` (a person declared it). Returns ``{status, edits, unexpressed, applies, expressible, declared_by, rendered, unquoted, second_reading, declaration, cross_check, ...}``: ``rendered`` is each edit in words beside its quotes, ``unquoted`` the text no quote reaches. Once a person declares the delta, the contr…
| Parameter | Type | Description |
|---|---|---|
control_id * | string | ID of the control (e.g. "CTRL-01"). |
model_id * | string | ID of the threat model. |
server_version * | string |
submit_control_delta Submit Control Delta
Submit a draft of a control's delta: edits to the behavioural model, each quoting the control's own text. Mutating; writes no control, set revision or model version. Each edit's quote must be found in the control's text (a quote's ``source`` defaults to the control), and ``unexpressed`` lists what the text commits to that no edit states. An edit that does not check is refused (422 ``delta_refused``) with its failures. A submission is a draft, never a declaration: it is checked against the text by one call billed to the caller (402 when the balance is short), so it can never make the analysis…
| Parameter | Type | Description |
|---|---|---|
control_id * | string | ID of the control. |
edits * | string | JSON array of edit objects, each with a ``trace`` of quotes from the control's text. |
model_id * | string | ID of the threat model. |
server_version * | string | |
unexpressed | string | JSON array of ``{"kind", "quote", "note"}``. |
request_delta_second_reading Request Delta Second Reading
Read controls' text into deltas a second time, by a call not shown the drafts: a delta is declared only once its draft has been read twice. Without ``confirm_estimate`` nothing is charged or written: the result lists the controls it would read, those it skips (``no_draft``, or ``read`` already) and the estimate, which must be RELAYED TO THE PERSON first. Never confirm on your own. With it the reading is made, billed to the caller (402 when the balance is short), and each control's outcome is returned (``usable``, ``unusable``, ``failed``, ``unavailable``). Refused with 409 ``generation_active…
| Parameter | Type | Description |
|---|---|---|
control_ids * | string | Comma-separated control IDs, at most 30. |
model_id * | string | ID of the threat model. |
server_version * | string | |
confirm_estimate | boolean | True to make the reading after the person agreed. |
declare_control_delta Declare Control Delta
Prepare the declaration of a control's delta as served: the act that makes it the control's specification. Declaring is a person's act, never a program's. Without ``confirm`` (the default) this is the preview, and nothing is written: the declaration the given spans and resolutions make, its ``declaration_hash``, each edit in words beside its quotes, the second reading's ``differences`` and those still ``open``, the text no quote reaches (``unquoted``), the spans the text's notes suggest as committing to nothing, what declaring does, and ``blocking`` (what stops it). Relay the preview to the p…
| Parameter | Type | Description |
|---|---|---|
control_id * | string | ID of the control. |
model_id * | string | ID of the threat model. |
server_version * | string | |
confirm | boolean | True to declare (a person's act). |
declaration_hash | string | The hash the preview returned. |
nothing_spans | string | JSON array of ``{"start", "end"}`` spans of the control's text, in code points, that commit to nothing. |
placements | string | JSON array of ``{"item", "index", "span", "start", "end"}`` naming which occurrence a repeated quote stands at. |
resolutions | string | JSON array of ``{"start", "end", "choice"}``, one per difference, in order: ``choice`` is ``draft``, ``second`` or ``written`` (with ``edits``). |
get_behavioural_threats Get Behavioural Threats
Read the possible threats the behavioural analysis finds for each control objective of a model. Read-only: nothing is judged, written or paid for. The analysis runs over the model with no controls applied. Per objective it returns its ``standing``, each obligation's ``result``, the ``threats`` (rule, obligation, elements), the ``default_questions`` whose answers would remove them, and the ``grounds`` the analysis rests on. Returns ``decides: false`` while the behavioural model is absent, asks an owner question, or has not been extracted. A page at a time, in the model's order of objectives:…
| Parameter | Type | Description |
|---|---|---|
model_id * | string | ID of the threat model. |
server_version * | string | |
co_id | string | One objective (e.g. "CO5"); empty for every one. |
limit | integer | Objectives per page (default 25, at most 200). |
offset | integer | The first objective of the page (default 0). |
standing | string | Only objectives of this standing; empty for every one. |
request_model_check Request Model Check
Request a model check of the obligations the behavioural analysis could not settle. Mutating only with ``confirm_estimate=True``; a paid action then. A check is paid for by whoever requests it, so it is estimated first and the estimate is RELAYED TO THE PERSON before it is confirmed. Never confirm on your own. 1. Call with ``confirm_estimate=False`` (the default): nothing runs or is charged. The answer carries the ``obligations`` it would cover (each with its completion ``prediction``), the ``scope``, the ``cones`` (each module, its runs, and ``remedies`` / ``not_run`` where it may…
| Parameter | Type | Description |
|---|---|---|
model_id * | string | ID of the threat model. |
server_version * | string | |
confirm_estimate | boolean | False (default) estimates; True queues the check. |
model_version | With ``confirm_estimate=True``: the estimate's value. | |
obligations | string | Optional comma-separated obligation ids to cover in place of the default (the unsettled ones the controls' groups reach). |
scope | string | Optional JSON object lowering some of the scope's constants, the keys the estimate's ``scope`` reports (e.g. ``{"domain": 1, "horizon": 4}``); each must be a non-negative integer at most the declared… |
set_revision | With ``confirm_estimate=True``: the estimate's value. |
get_model_check Get Model Check
Read a model's model check: the live one, else the latest. Read-only. ``status`` is ``queued``, ``extracting`` (the independent extraction), ``running``, ``pausing``, ``paused``, ``differences`` (the independent extraction disagreed with the confirmed model: ``cross_check.questions`` are the questions to answer with ``answer_behavioural_questions``, and no model check ran), ``complete``, ``incomplete``, ``failed``, ``discarded``, or ``none`` when the model has never had one. ``terminal`` says whether it has stopped. Beside it: the ``obligations`` and ``scope`` it covers, the ``estimate`` conf…
| Parameter | Type | Description |
|---|---|---|
model_id * | string | ID of the threat model. |
server_version * | string |
manage_model_check Manage Model Check
Pause, resume or discard a model's live model check. Mutating. - ``action="pause"``: a queued check pauses at once, a running one at its next stage (``pausing`` until then). Idempotent. What it already ran is charged. Returns ``{paused: true, job_id, status}``. - ``action="resume"``: a paused check resumes at the stage it stopped in. Returns ``{resumed: true, job_id, status: "queued"}``. - ``action="discard"``: drops a queued or paused check; a running one is refused until it is paused. What it already ran is charged. Returns ``{discarded: true, job_id, status: "discarded"}``. A re…
| Parameter | Type | Description |
|---|---|---|
action * | string | "pause", "resume" or "discard". |
model_id * | string | ID of the threat model. |
server_version * | string |