Mipiti MCP Server
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| MIPITI_API_KEY | Yes | Your Mipiti API key | |
| MIPITI_API_URL | No | API base URL | https://api.mipiti.io |
| SERVER_VERSION | Yes | Identifier for the running server's MCP surface. For local runs, any sentinel string is fine (e.g., 'local'). |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
Mipiti generates threat models from feature descriptions and tracks security controls with machine-verifiable assertions.
Every tool call must include server_version set to local. If the server responds with an instructions_updated field, relay the message to the user, in a way appropriate to your environment, then continue with the current task.
When to use
Before implementing changes, call generate_threat_model with a description of the change. It automatically discovers similar existing models — either returning matches to refine or proceeding with generation. Use the resulting controls to guide your implementation.
Constructing feature_description
Output quality scales with input quality. A one-line "this is a backend that handles payments" produces a generic, shallow model; a multi-paragraph spec with concrete components, integrations, and trust boundaries produces a useful one. Two scenarios require different gathering strategies:
Scenario A — planned change (you're about to implement something). The in-progress design discussion or PR description is usually enough. Pass it verbatim or lightly edited. Don't pad with unrelated repo context.
Scenario B — existing repo (operator said "threat-model this repo" or similar). The conversation context alone is almost never enough. Before calling generate_threat_model, gather:
Purpose — open
README.md(and anydocs/overview). One or two sentences on what the system does and who uses it.Components / processes — entry points, services, daemons, workers. Look at
Procfile,docker-compose.yml,fly.toml, k8s manifests, thescriptsblock inpackage.json,__main__.py/ top-levelmain.py/cmd/directories, the[project.scripts]table inpyproject.toml. List each component with a short purpose.External integrations — third-party APIs, databases, queues, auth providers, payment processors. Grep env-var references (
os.environ,process.env), SDK imports (stripe,boto3,@octokit, etc.), and infrastructure definitions. Name each one and what it's used for.Data flows / assets — what data enters the system and where it goes. Skim HTTP route files, webhook handlers, message-queue consumers, schema/model files. Note PII, secrets, credentials, regulated data.
Trust boundaries — where requests cross from less-trusted to more-trusted (network ingress, auth middleware, service-to-service calls, worker IPC). At minimum: "anonymous internet → authenticated API → internal services → datastore."
Deployment shape — SaaS / on-prem / hybrid / library. Single-tenant vs. multi-tenant. Look at
Dockerfile,fly.toml,helm/,terraform/, or absence thereof.
Pass all of this as a multi-paragraph feature_description. The backend will detect similar existing models — if one matches, prefer refine_threat_model on it instead of force=True.
Threat modeling
generate_threat_model— creates a new model with trust boundaries, assets, attackers, and control objectives. Automatically detects similar existing models and routes accordingly. Progress reported automatically.refine_threat_model— updates an existing model when you already have a model ID and want to change it. Progress reported automatically.generate_from_behavioural_model: generates a model saved before its inventory (see Behavioural model) onceget_behavioural_modelreportsgeneration_ready. Takes only themodel_id. Progress reported automatically.add_asset/edit_asset— targeted single-entity changes without full refinement. An entity that does not apply is recorded with a non-applicability assumption orcreate_co_disposition, never by editing the entity.add_attacker/edit_attacker— same for attackers, plussurface_extent:wholewhen, from its position, the attacker's operations range over ANY entry of the interface it reaches (any endpoint, request, row, file, message or frame);pointwhen they range over one named entry. Supplying it requireschange_reasonon either tool, and a person's call attests it, audited like a factor override. An attestedwholemakes the objectives that attacker anchors for-all obligations (see Controls and assertions). Onadd_attackeronlywholeis declarable — narrowing to one named entry is a statement about the objectives the attacker anchors, which a create does not have yet, so add the attacker and then narrow it withedit_attacker.Attestations are judgments. Attesting a boundary's seal, an attacker's position (
attest_position), its privileges (attest_privileges) or its surface extent is a person's decision; a program takes it only where the workspace delegates it (seal_attested,position_attested,privileges_attested,extent_attested). A program refused is not given a 403: its edit lands unattested, the attestation is parked for a person, and the answer carriesattestation: {status: "escalated", escalation_id}. An attestation holds for the content it was taken over: a later change to a boundary'spasses,crosses,neighborsorsealed, or to an attacker's boundaries or privileges, voids it. Only attested grounds (a trusted position, attested privilegesNone, an attested seal on every blocking boundary) let reachability remove an objective.Entity quality (authoring contract): an asset must name the data or resource being protected and the security property at stake (Confidentiality / Integrity / Availability / Usage), not a mechanism or control — name the key material, not "the KMS encryption". An attacker's
capabilitynames its position, what it holds and the operations performable from there, each on a named part of the system: "From [position], holding [credentials | no credential], the attacker can [concrete operations] …", never a technique or an outcome. Every claim must rest on the description, its answers or the entity's own answers. The check's verdict is read asqualityonget_entity:clean;advice(a sharper wording, never a warning);defect, withproposedcorrected words,drops, the claims they no longer make, andadds, the claims (and security properties) they newly make: applying them withapply_entity_proposals, naming the verdict'sinput_hashand the correction'sproposal_hash, is accepting the correction, a judgment normally the owner's (a program's is parked for a person unless the workspace delegatesentity_correction_acceptedfor every kind the correction carries: a narrowing drops a claim, a widening adds one), so relay the correction, its drops and its additions to the person, answer a doubted claim you can establish withanswer_entity_questioninstead, and declare a property that does not apply not applicable, since a correction never removes one;question, one question for the owner; orinvalid. Any flag (a question, a defect, an invalid verdict) may be answered with a fact throughanswer_entity_question, from the documentation or the code and naming where it is shown, never a guess: the check, shown the answer, decides again. Each answer queues the check of every entity it may bear on, paid by whoever answers (its response'sbillingandmessagesay the balance and the most it costs), and each check is shown only the answers that bear on its entity: relay the cost to the person before answering many. A queued check runs once the round of answers settles: the entity carriescheck: {queued: true, runs_after}and readsuncheckedmeanwhile, its previous verdict shown asquality.last_verdict(judged before the latest answers, never current). Read it again afterruns_after; never request a queued check again. Never weaken a true claim to clear a flag. The review queue'sentity_qualityrow lists every entity with a correction, a question or advice. An entity whosequalityreadsuncheckedwith nocheckwaiting is checked withcheck_entity_quality, naming it: it estimates first (RELAY THE ESTIMATE TO THE PERSON, and confirm only when they agree), never re-checks a current verdict, and is at Mipiti's cost where a platform change made the check necessary.revalidate_entity_qualityasks every entity again whatever is stored, at your cost.get_entity(entity_type=…)— read any single entity by type + id. One reader for every entity kind:asset,attacker,component,trust_boundary, orassumption.remove_entity(entity_type=…)/restore_entity(entity_type=…)— soft-delete or restore any entity by type + id (asset,attacker,component,trust_boundary, orassumption); removals are audit-preserving. Every entity write (add, edit, remove, restore) answers with the model's id, version and title and, underentities, the records it wrote; read the whole model withget_threat_model.reevaluate_threat_model_factors— bulk LLM re-run of the factor decomposition (subscores + blast/recoverability/regulatory on assets; CVSS-Base + capability_prevalence on attackers) for every live entity in a model, or only thoseentity_idsnames, or only those nobody rated (unrated_only: the entities a model reads as "not rated", one call each), or only those rated for another description (stale_only: an entity'srating_stale, the review queue'srating_stalerow). A rating a person chose is never replaced: the answer is held pending beside it (rating_pending), the more severe in force, untilsettle_entity_ratingsettles them (a judgment,rating_reconfirmed). Use this to re-baseline an existing model after the feature description changes meaningfully, or to refresh stale ratings — without regenerating the whole model (which would destroy controls, assertions, components). The platform's factor judgment is a calibrated starting point; layer deployment-specific reality on top viaedit_asset/edit_attackerwith achange_reasondocumenting the override (e.g., "regulatory_scope=Legal — tenant is HIPAA-covered", "capability_prevalence=Commodity — endpoint is public-internet exposed"). The rating-revision audit trail distinguishes platform suggestions from operator overrides.revalidate_entity_quality— re-run quality validation over an existing model's assets and attackers (a fast first-pass check on every entity, a deeper review only on the ones it flags). Use it to apply validation improvements to an already-generated model or clear stale quality warnings, without regenerating. Non-destructive (it flags rather than deletes) and creates no new version: it runs in the background, and the refreshed warnings appear on the next read of the model.get_threat_model— retrieve a model's structure (excludes COs by default; useinclude_cos=Trueto include them). The answers to its questions are counted and left out unlessinclude_clarifications=True, which pages them. A read longer than 200,000 characters is cut, andcutsnames what was cut and the read that serves it.include_inventory_completeness=Trueadds how much of the inventory the claims rest on: for each entity holding the tier down,grounding_gapsnames every ground it lacks and the act that supplies it (the tool and itsmcp_arguments, ready to send once the angle-bracketed values are filled).query_threat_model— ask questions about an existing model. It only answers; it never changes the model.list_threat_models— browse existing models.update_threat_model— a model's metadata:name(no new version; titles are unique within a workspace, case-insensitive),parent_idorclear_parent(its place on the recursive composition tree; cycles and over-deep chains are refused; no new version), andprovenance_*(where its description came from; bumps the version).delete_threat_model— permanently delete a model and all its data.export_report— export a threat model. Its scope/format params produce a PDF, HTML, or CSV report, or the self-contained JSON audit archive of the model's current state (latest version, controls, live assertions with CI verdicts, findings, decisions in force, attestations, sufficiency signatures — independently verifiable without origin-instance access). The verdicts in it are the origin's record of what it claimed, which is what a third party checks; what an importing workspace credits is decided by its own verification (seeimport_threat_model_archive). The same tool produces a tag's auditor report (see Tags).import_threat_model_archive— restore an audit archive into a workspace as version 1 of a new model. Its contents never pass through the call: the locally run package imports afilefrom its exports folder, and otherwise the answer'simport_in_appis where the person imports it. Assigns a fresh model_id every time; a title already used in the workspace gets a numbered suffix (Checkout (2)). The restored model arrives unverified: the tier verdicts and run-attested flags on its assertions are the origin's record and are not credited here, so plan for the model to read unverified until verification runs against code this workspace can reach. It queues no judgement either: the result'sjudgementis the estimate, andjudge_objectiveswithconfirm_estimate=Truequeues it.
Controls and assertions
A threat model produces control objectives. Controls are derived from these and represent specific security requirements to implement. Assertions are typed, machine-verifiable claims about system properties that prove a control is satisfied. A system property can be verified by examining source code, configuration files, infrastructure definitions, or external service settings.
Key tools:
get_controls— lists controls with current status; pass a single control id to read just one. Usesummary_only=Truefor a compact response (id, description, status, verification_status, assertion_count, co_ids, assumption_groups, attestation_dependency).get_control_objectives— lists COs with which controls cover each one; pass a single CO id to read just one. Pair withget_reachability_verdictsto surface composer reachability state per CO before linking assumptions or regenerating.submit_assertions— provide proof for a control. Callget_assertion_typesfor the types and their params; the tool description is prose your client may shorten. Always verify locally first:mipiti-verify verify <type> -p key=value --project-root .Read the target file and confirm a reviewer would agree with the claim.Assertion design: prefer decomposition over breadth. Tier 2 (semantic LLM check) evaluates each assertion with only its own check-type evidence. A single broad claim like "X calls Y to do A and B using C" will pass Tier 1 but fail Tier 2 — the mechanical evidence (e.g., a function_calls result) doesn't surface facts A, B, C. Split into multiple atomic assertions — one for each narrow aspect — each with a check type that directly shows the relevant code (
pattern_matcheson the specific line,function_existsfor the named function, etc.). Submit them as a group on the same control. Sufficiency combines them; individually each is trivially provable.Behavioral clauses need a test, not just a mechanism. A clause such as "rejects an expired token" is shown to exist by a structural type (
function_exists,pattern_matches) and shown to hold only by a test that exercised it.test_existsproves the test file is in the tree and nothing ran;test_attestedproves it passed: a statement the repository's own CI workflow signed about a run against the commit under verification, which a developer machine cannot produce. It says nothing about a control the run had switched off, so pin the control on with theenvparam when it is configuration-gated, and pair it with the structural assertion for the mechanism. Coverage of the control's code path is not proven. A signed pass is strong tier-1 evidence, not a verdict: sufficiency still decides whether the clause is covered. An unsigned statement or an unattested run still covers the clause but is reported as a claim, never a witness.A for-all clause needs a sound witness, not more tests. Every assertion type declares a soundness class, returned by
get_assertion_types:presence(a construct exists),under_approximating_scan(a pattern scan; clean proves absence of the form only),existential_witness(a signed run passed; proves the path it drove),sound_over_approximation(every sink site in a declared scope is a safe form or a reviewed exception) andby_construction(the sink accepts only a boundary type whose construction is default-denied). A clause that ranges over every entry of a surface — every endpoint, every query, every frame — is credited only by a witness of one of the two sound classes, bound to it withcovers;get_assertion_typesreturns those classes insound_classesand the types that carry them, andget_control_work_order'sassertion_contract.sound_typesnames the ones the platform takes. A test proves only the path it drove, and an attestation is a responsible party's claim, never a proof over every site. Read the work order before writing evidence: where the order names a required class for a clause,required_evidencecarries the clause id to put incoversand asuggested_submissionskeleton whose<...>placeholders you replace, and when a clause reads unverifiable by the current evidence, submit the named class rather than more tests. Where both are offered, prefertyped_boundarywhen the sinks accept a boundary type; otherwisesink_default_deny. Hardware sources are covered by the same two types: an assignment or a module instantiation is a sink. Wheresound_typesis empty, no type the platform offers discharges a for-all clause, and the acts that remain are the ones the order names: scope the asset to the component the attacker actually reaches, attest apointextent with its reason, or record a risk acceptance or a not-applicable disposition.Bind evidence to what it proves. Each submitted assertion may carry
covers: the objective id (CO-NN) or, on a multi-clause control, the clause ids (cls_…) thatget_control_work_ordernames inrequired_evidence. The form of the declaration is refused on arrival when it is malformed. A declared binding survives review; an undeclared one is inferred by review and capped below sound credit. Resubmit the assertion withcoversto change the declaration.list_assertions/delete_assertion— list active assertions for a control; delete stale or incorrect ones before resubmitting.update_control_status— mark implemented or not_implemented. Requires at least one assertion BEFORE marking implemented. Always submit assertions first, then update status.get_verification_report— shows which controls are verified, which have sufficiency gaps, and which lack assertions entirely. Readsufficiency_detailsfor the specific aspects that still need proof. Eachsufficiencyblock also carriesmisaligned_assertion_ids(off-topic assertions that should be rebound, superseded, or rewritten — do not treat them as evidence) andstale: true(the stored verdict no longer matches the control's current inputs). Reading does not queue a re-evaluation: the write that changed a control queues its own, so re-read later for the refreshed verdict.get_sufficiency— quick check: do assertions for a single control collectively cover all aspects? Evaluated server-side at submission. For the per-clause work list readget_control_work_order: where the order names a required class for a clause,required_evidencecarries the class, the clause id to bind evidence to, and a submission skeleton to fill in.get_mitigation_groups— get the current group structure for a CO with control details (id, description, status) for each entry. Shows numbered groups (AND within, OR across), defense-in-depth controls, and unmapped controls available for assignment. Use beforeset_mitigation_groups, when reviewing why a CO is at_risk, or to find unmapped controls.set_mitigation_groups— set which controls are required vs defense-in-depth for a CO. Use when a control is blocking a CO but is redundant with existing mitigations (e.g., HMAC signing redundant with TLS + content hash), or when restructuring alternative mitigation paths. Groups define: within group AND (all required), across groups OR (any complete group mitigates). AI-gated: rejected if the new structure doesn't satisfy the CO.refine_control— modify a control's description if it doesn't match the actual security requirement. After an accepted refinement the control's assertions are kept and judged again against the new description in the background: one that still fits keeps counting as evidence, and one that no longer fits is flagged, so readget_sufficiencyonce the re-judgement lands and replace what it names. Nothing is superseded by the refinement itself (superseded_assertionsis always 0).delete_control— soft-delete a control with justification. Blocked if it is the only control covering a CO — add a replacement first.import_controls— import existing controls from JSON or free text, auto-mapped to COs and deduplicated against existing controls. They await their judgement: the groups they join credit nothing untiljudge_imported_controlsis asked for.edit_evidence— attach (action="add") or detach (action="remove") auxiliary metadata (docs, links, artifacts) on a control. Evidence is contextual only — it does NOT prove a control is implemented. Only assertions do that.regenerate_controls— propose a regeneration of the controls (it starts nothing;start_control_buildstarts it). Supportsmode="per_co"for thorough single-responsibility generation, andco_ids="CO1,CO5"to regenerate only specific COs (preserving other controls). Controls whose descriptions survive unchanged keep their implementation status, assertions, and mappings.start_control_build/discard_control_build— start the model's proposed control build after reviewing it, or drop a held one. See Control builds below.list_control_revisions/undo_model_change— every change to a version's controls with its author; undo the latest change (target="controls", latest first, no redo), or revert the latest model version to a copy of the latest earlier version not already discarded (target="version").
Workflow — handle in this order:
Controls outside the system boundary (externally handled): Read each not_implemented control description. If it describes something the system owner cannot implement (e.g., "restrict CI runner egress", "vendor maintains PCI DSS certification") — it belongs outside your trust boundary. Use
set_control_assumption_groupsto link it to an existing assumption, or create an assumption first withadd_assumption. Do NOT submit codebase assertions for controls outside your boundary. The platform runs an AI relevance gate on every assumption-to-control linkage; if the assumption's description doesn't cover what the control requires, the call raises and there is no override. If rejected, either pick an assumption that covers the control or edit the assumption's description to make coverage explicit.set_control_assumption_groupshandles both the simple single-assumption, single-group case and compound ("AS1 AND AS2") or multi-path ("AS1 OR AS2") cases.Controls already satisfied by existing code (no code changes): use
get_controlsto list controls. For each, search the codebase for code that already implements it. If found, craft assertions that prove the implementation, verify locally, submit assertions, then callupdate_control_statusto mark as implemented.Sufficiency gaps on verified controls (no code changes): call
get_verification_reportand readsufficiency_detailsfor controls that are partially verified. These are implemented but some aspects lack proof. Search the codebase for code that proves the missing aspects and submit additional assertions. If you cannot find proof for specific aspects, callcheck_control_gaps— the control's prescribed mechanism may need refinement.Controls requiring implementation (code changes needed): before implementing, call
check_control_gapsto verify the control's mechanism is appropriate. Then search the codebase for existing mechanisms that may already address the control. If found, callrefine_controlwithcodebase_findings— the platform evaluates whether the existing mechanism satisfies the objective and proposes a revised control if so. If accepted, submit assertions for the refined control. If rejected or no existing mechanism found, implement as prescribed, submit assertions, and update status.
Sufficiency is evaluated automatically server-side when assertions are submitted — no manual trigger needed.
Before implementing a control call get_control_work_order; reconcile with reconcile_model; check list_decisions before proposing; a refused judgment (403 with escalation_id, or for an attestation the edit's attestation.escalation_id) is parked for a person — do not retry, poll list_proposals.
Behavioural model. A model can carry a behavioural model: what the system does, as elements, actions and zones taken from its description. get_behavioural_model reads it and reports whether it has none, needs answers, is extracted, is confirmed, or has gone stale; extract_behavioural_model gives one to a model that has none. An extraction is paid: call it for the estimate, RELAY THE ESTIMATE TO THE PERSON, and confirm only when they agree; never confirm on your own. get_behavioural_threats returns the possible threats per objective: relay a possible threat to the person together with its default questions first, since an answer that settles a default removes it. Open behavioural questions appear on get_review_queue (behavioural_question, and behavioural_link for an element not yet linked to an asset or trust boundary). Answer a question only from what the code or the owner shows, and say unknown otherwise. Answers (answer_behavioural_questions), element edits (edit_behavioural_element), removals of an element the system does not have (remove_behavioural_element, refused while anything names it, withheld from every later extraction), releases of an element held as written (release_behavioural_element, or release_behavioural_elements for several in one version, which is how to answer many held questions: an element whose rank is declared is never changed by an extraction, so a correcting answer reaches it only once it is released or edited; a question of closure held asks for one), link declarations (declare_behavioural_link, accept_behavioural_link_proposals) and confirmation (confirm_behavioural_model) are judgments: a program's is refused with 403 and an escalation_id unless the workspace delegates it, so do not retry. An answer, an element edit and a confirmation each create a model version. A control's delta is read with get_control_delta, each edit in words beside its quotes; submit_control_delta stores a draft, checked and never declared. Declaring a delta is a person's act: request_delta_second_reading reads the text a second time (paid: RELAY THE ESTIMATE TO THE PERSON first), declare_control_delta without confirm previews the declaration and its differences, which you relay, and a program's confirmation is always parked for a person. A declared control's sufficiency is judged against its declaration (get_sufficiency's commitments), and a cross-check asks whether its text commits to more; an open finding of it keeps the control insufficient until a person dismisses it in the app, which is never a program's act, so relay it. A generate_threat_model that returns needs_answers stopped on questions only the description's owner can answer: relay them and answer them. One that returns extracting saved the model and extracts its behaviour in the background. Follow an extraction with get_behavioural_model(view="status", wait_seconds=50), which answers when the job moves and reports its progress meanwhile, until extraction.job is null; view="questions" pages the open questions without the whole model, and view="answers" the answers it holds (read it to review or correct them). Once it reports generation_ready, call generate_from_behavioural_model with the model_id: it takes no description (a generate_threat_model naming a model_id with a description is refused, resume_takes_no_description). Before submitting answers, call answer_behavioural_questions with dry_run=true: it records nothing and says whether they extract and which questions they leave or raise, so you answer those too and submit once. get_behavioural_threats is paged (offset, limit, co_id, standing): read on from next_offset. A question about the model's own structure carries structured: its answer is the shape to send (a sentence that describes nothing is answered {"describes": [...]}), the rest the ids it may name. Answer it with structured, which edits the model at once with no extraction, where words are only read by the next extraction. Where the offer carries new_zones or new_actors, an answer may name a zone or a receiver the model lacks, and it is added. A question about what a zone holds (closure zone_contents: "What does the system keep in, or send to, ?", or " sends over to , and the model holds none of it as an element") offers the contents form: structured: {"elements": [...]}, each element an id, or {"id": "<id>", "secret": true} for one that holds a secret. An id the offer lists under elements names an element already in the zone; any other id is a new element, declared in that zone, kept there, with one field (a secret where marked, else a plain value). The answer closes the question at once, with no extraction, and only widens what is analysed. An id another element holds elsewhere is refused 409 id_in_use; an empty or malformed list is refused 422 structured_malformed. The question takes one dismissal besides a fact: disposition: "not_needed", saying the zone holds nothing of the system's; it stands while the zone, or what is sent there, is as it was asked about. unknown is refused. get_behavioural_attackers reads the attacker closure on a generated model: the attackers its credential classes say the inventory lacks (add_proposed_attacker, or dismiss_proposed_attacker with why, the whole proposal or, for a part of the zones nobody stands at, the zones no attacker reaches; where two proposals hold the same classes, name one by a zone of it), attackers standing for zones of several capabilities offered split (split_grouped_attacker, naming each part's zones, or keep_attacker_whole with why) and questions asking what an attacker holds (answer_attacker_credentials, whose answer sets its privileges by rule; edit_attacker then refuses a privileges change, 409 privileges_from_holdings). Each act is a judgment, as an answer is, and answers with the closure's counts rather than its lists. get_inventory_judgements reads what the per-entity checks found about the inventory: entries that may be one entity, and entities whose taxonomy tags are unchecked; request_inventory_checks queues the checks owed, decide_inventory_pair records that two entries are or are not one entity, and declare_inventory_tags the primitives an entity answers. Both are judgments (inventory_pair_decided, inventory_tag_declared), and nothing merges or removes an entity. extraction.dropped_elements lists what an extraction could not keep, with the sentence each came from. Each is asked by a question of its own (closure dropped), which holds the model until the element is back: answer it with what the element does (a fact the next extraction reads), or edit the element in with edit_behavioural_element. It takes no dismissal (not_needed or unknown is refused 422 not_dismissable): a dropped element leaves out behaviour the text states, which no dismissal makes up for. A question of closure traced about an element released since it was read, or whose quote cites an answer a later fact replaced, holds nothing, and once the model holds a behavioural model no extraction or regeneration settles it: answer it from the source (where the quote comes from), with the correction that stands, or edit the element. The model's waiting_on names what it waits on there (source_answer, correction, or regeneration where it was read from facts since replaced) and waiting_hint says what settles it; a regeneration is paid, estimated first with regenerate_behavioural_model. Asking to extract again while an extraction is queued or running, or with no answer given since it started, is refused (409 extraction_running): poll it instead. Where extraction.superseded is set, a release changed what an extraction produces since the model was extracted: ask for the extraction (answer_behavioural_questions with extract_now=true, no answer needed) and it runs with the questions open, asking again only what it still finds, once; its billed_to says whether it is Mipiti's (the release fixed something that extraction got wrong) or the caller's. Relay that to the person before asking, as any paid action. On a model holding a behavioural model that call is a regeneration's estimate and queues nothing: confirm it with regenerate_behavioural_model (confirm_estimate=true and the model_version it names) once the person agrees. public lets anyone invoke an action and authorises no one to change or read what it touches; an element changed from outside takes no writer (409 outside_default: answer its default question). A question marked awaiting_fix was answered; there is nothing more to answer. Where the code does more or less than a sentence, decide_drift_intent says whether that was intended or a defect (or propose it with create_proposal kind drift_intent), and a description_revision proposal revises the description when drift.revision_suggested is true. Obligations the analysis cannot settle can be model-checked: request_model_check is paid, so call it for the estimate, RELAY THE ESTIMATE AND ITS NOTICES TO THE PERSON, and confirm only when they agree; poll get_model_check, and manage_model_check pauses, resumes or discards it.
Diagnosing "implemented but not verified" — check in this order. A control that is marked implemented but still reads partially_verified is the most common state you will meet, and the fields are easy to misread. Work down this list and stop at the first hit; do NOT skip to a recompute.
get_sufficiency(orget_verification_reportfor the whole model) — start here, it is free and it is usually the answer. Ifstatusisinsufficient,detailsnames each uncovered clause and the evidence that would close it. That is the work list. Write those assertions.Check the clause against reality. If the control describes a mechanism the system deliberately does not use (it returns 404 where the control demands 403, say), the DESCRIPTION is what is wrong —
refine_control, do not manufacture evidence to match prose no one intends to honour.list_assertions— only if sufficiency looks fine. Afailontier1_status/tier2_statusmeans the evidence itself is broken.coherence_status: "pending"is advisory: it is not a blocker and not a missing verdict.recompute_verdicts— only when control-to-CO MAPPINGS look wrong (get_verdict_divergenceshows missing/spurious mappings). It does not compute per-control sufficiency or assertion coherence, it costs credits proportional to model size, and running it for a sufficiency gap changes nothing. Its defaultmode="quote"returns the estimate and enqueues nothing: show the operator the number first, then call it withmode="recompute".
The general rule: exhaust the free read-only verdict surfaces before recommending any metered write.
When you hit an implementation constraint mid-coding
When a reviewer, hardware limit, library bound, or operator decision forces you off the prescribed mechanism (e.g., "this device only supports AES-128, not AES-256"), do NOT silently weaken the existing control or its assertions. Record the constraint structurally so the threat model reflects reality and the audit trail captures the reasoning. Use this 3-step pattern:
Add the alternative control — call
import_controlswith a single-entrycontrols_jsondescribing the weaker-but-feasible mechanism. Setco_idsto the affected CO. Setframework_refshonestly: include only bindings the alternative actually satisfies — drop any that the weaker mechanism cannot meet. Then callassign_to_componentsto scope it to the constrained component(s) only, so the original control still applies elsewhere.Declare them as OR-alternatives — call
set_mitigation_groupson the affected CO with the original (strict) control in one group and the new (weaker) control in another (across groups = OR). Pass the operator's plain-language constraint reason injustification— it flows into the AI gate's verdict and the activity log.Record the constraint context — call
add_assumptionwithlinked_co_ids=[<co>]capturing what reviewer or system imposed the constraint, the rationale, and any expiry conditions (e.g., "hardware refresh in 2027 lifts the AES-128 limit"). Thensubmit_attestationso the assumption is active.
If the alternative drops a framework binding the original carried, the platform automatically emits a framework_binding_asymmetry finding for the security team to triage — surfaced via list_findings and get_findings_risks.
Assurance posture
assess_model— deterministic assessment of all control objectives. Returns mitigated/at_risk/unassessed counts and progressive metrics (defined/implemented/verified COs). Usesummary_only=Truefor a compact response with just the counts and a contextualmessageexplaining the current state (e.g., "13 controls not implemented, blocking 35 COs"). Usestatusto filter,offset/limitto paginate, passing back thesnapshotthe first page names so every page comes from one evaluation. Each CO assessment includesmitigated_by: "controls" | "assumption" | null—"assumption"is a fully resolved state, not a gap. Onlyat_riskandunassessedCOs require action.
Reachability and risk reason: Reachability per CO is exposed by get_reachability_verdicts (deterministic-computation provenance — re-derived from structural primitives, never persisted). Each CO assessment also includes:
risk_reason— why a non-mitigated CO is at risk:missing_controls(implement controls),pending_attestation(submit an attestation for the linked boundary assumption),expired_attestation(renew an expired attestation),unassessed(generate controls or create an assumption),coverage_gap(controls are implemented but do not span the CO's full threat — add controls to close the gap, or dismiss/accept if intentional),insufficient_by_design(the controls defined for the CO's mitigation group would not mitigate the objective even if fully implemented — a design gap, not an implementation gap; redesign or add controls so the group can span the threat),no_mitigation_group(controls address the objective and none of them is grouped, so nothing states which are required together),awaiting_judgement(a group is built and nothing has judged whether it covers the objective).insufficient_by_designis more binding thanmissing_controlsand takes precedence over it.
Two of those reasons are not evidence gaps and adding controls will not move them. no_mitigation_group and awaiting_judgement both say the objective's controls may be complete and the missing thing is a statement about them: which of them are required together, and whether that set covers the objective. Read them as such before generating anything.
pending_assumption_ids/expired_assumption_ids— assumption IDs that need attestation action.
Before acting on any risk_reason, check whether a control is actually REQUIRED for the objective. get_mitigation_groups splits a CO's controls into numbered groups (within=AND, across=OR) and defense_in_depth. Only the groups earn mitigation credit. If a CO has controls attached but ALL of them sit in defense_in_depth, or it has no groups at all, then nothing is required to mitigate it and the CO cannot leave at-risk no matter how many controls you generate or how much evidence you submit. That is a modelling gap, not an evidence gap: decide which controls genuinely carry the objective and place them in a required group with set_mitigation_groups (AI-gated, so the structure has to actually satisfy the CO). Generating or proving controls in this state is wasted work.
Action routing by risk_reason: missing_controls → implement controls and submit assertions. pending_attestation → call submit_attestation for the assumption IDs listed in pending_assumption_ids — do NOT try to implement controls for boundary-excluded COs. expired_attestation → call submit_attestation to renew for the assumption IDs listed in expired_assumption_ids. unassessed → the CO has no controls: read the model's proposal in get_control_generation_status (or propose one with regenerate_controls) and, once the user agrees to its estimate, start it with start_control_build. If the composer says the CO is indeterminate (per get_reachability_verdicts), the model is missing structure — supply it (position the attacker, scope the asset to a component) rather than asserting a conclusion. If the objective genuinely does not apply to this system, record that with create_co_disposition: the objective stays in the matrix and the counts, carrying the owner and justification, instead of disappearing. coverage_gap → the controls are implemented but leave part of the CO's threat unaddressed. Inspect the linked coverage_gap finding via list_findings for the uncovered aspects + suggested control, add controls (regenerate_controls / import_controls) and submit assertions; if it's a false positive dismiss the finding, or if intentional record a risk acceptance / assumption. insufficient_by_design → the controls defined for the CO's mitigation group would not mitigate the objective even if fully implemented. Do NOT just implement the defined controls — that will not help. Inspect the linked insufficient_by_design finding via list_findings for the rationale, then redesign or ADD controls to the mitigation group (regenerate_controls / import_controls, then set_mitigation_groups) so the group can actually span the objective's threat, and submit assertions; if it's a false positive dismiss the finding, or if intentional record a risk acceptance / assumption. (Contrast with missing_controls, where the defined controls would mitigate the CO and you simply implement them and submit assertions.) no_mitigation_group → decide which controls genuinely carry the objective and place them in a required group with set_mitigation_groups; do NOT generate more controls, the ones that matter are already there. awaiting_judgement → call judge_objective on the CO, or judge_objectives for all of them at once. Nothing has decided whether its group covers it, so neither implementing nor adding controls changes the reason; the remedy is the judgement. It may come back insufficient, which moves the objective to coverage_gap / insufficient_by_design and names real work — that is the answer, not a failure.
Working a model's review queue
To work a model's review queue (decisions, proposals, behavioural questions, entity flags), call get_review_playbook first and follow it: it gives the procedure for each kind of item, the model's open items, what you may decide under the workspace's delegation policy, and the paid acts that need the person's agreement to their estimate. Pass evidence (the citations the judgment rests on) on every judgment. Close the review run it opens with close_review_run and give the person the digest it returns.
Gap discovery
For controls with status not_implemented, determine whether the code already implements them (submit assertions) or genuinely lacks them (submit findings):
get_review_queue— start here for periodic maintenance: returns controls not reviewed in 90+ days. For each stale control, verify its assertions still hold against the current codebase.get_scan_prompt— returns targeted prompts for scanning the codebase against specific not_implemented controls (this is the security-control kind; the same tool serves the functional-conformance per-test briefs when you pass the functional kind — see Functional conformance).check_control_gaps— AI-powered gap analysis across all controls.submit_findings— report confirmed gaps where controls are missing.list_findings/update_finding— track finding lifecycle.get_findings_risks— workspace-wide dashboard: open findings, active risk acceptances, and at-risk Control Objectives in one call. Use as the triage entry point when the operator asks "what's open?" / "what should I work on next?".get_risk_view— Prioritized Risk View rows for a specific target (pass the scope — a model, or a tag) with risk dimensions, control coverage counts, and open-finding counts per CO. Use when narrowing from workspace-wide to a specific target.get_remediation_leverage— for one model, the not-yet-satisfied controls ranked by how many control objectives each closes, plus a greedy minimal fix order. Use to prioritize implementation: which controls to build first for the shortest path to coverage; each entry names its owning model, so a high-leverage control inherited from a parent model is clear.list_risk_acceptances— see which risks have been explicitly accepted on a model (with owner, justification, review deadline) so you can separate intentional acceptances from genuinely unaddressed gaps.create_risk_acceptance— record a deliberate acceptance of a control objective's residual risk (owner, justification, review deadline) so a known-and-accepted decision is explicit and auditable rather than an implicit gap.create_co_disposition— record that a control objective DOES NOT APPLY to this system (owner, justification, review deadline). The sibling of a risk acceptance, and the difference is the claim: an acceptance says the exposure is real and is being carried; a disposition says the objective does not apply here at all. The objective is NOT removed — it stays in the matrix and in every coverage count, reported in its own class with the owner and justification attached, so a reviewer can challenge the judgment. What it does suppress is work: no controls are generated for it and no coverage gap is raised against it.list_co_dispositions— see every signed judgment on a model's objectives (both kinds, including expired and revoked ones, which are part of the audit trail). Read this before authoring a new one: an existing judgment may already cover the objective, or may have expired and need re-signing rather than duplicating.recompute_verdicts—mode="quote"(the default) returns the cost estimate and enqueues nothing;mode="recompute"forces a fresh evaluation of every control's coverage verdict and every live CO's group-sufficiency verdict when the surfaced divergences look stale;mode="retry_parked"re-runs only the verdicts a transient failure parked. Work runs in the background, with a spend status object (an exhausted status means the work is queued and resumes automatically — never dropped).judge_objective— have ONE control objective's mitigation group judged. The right tool for an objective readingawaiting_judgement; prefer it overrecompute_verdicts, which sweeps the whole model and costs accordingly. Runs in the background and may consume credits. It is not a repair: the judgement can come back insufficient.judge_objectives— the same for every objective that has no judgement for its current controls and none queued (the diagnosis'snot_judgedcount). Call once for the estimate and show the user, then again withconfirm_estimate=Trueto queue; any credits it consumes are metered as each judgement runs. Objectives with no mitigation group come back inungroupedand are not judged.
Remediating findings (structural drift)
The platform emits structural-drift findings (e.g. duplicate controls that accumulated from prior platform behavior, framework-binding asymmetries when mitigation groups have inconsistent compliance coverage) via list_findings. For findings whose kind supports automatic remediation, you can offer the operator a one-click cleanup flow:
Call remediate_finding(finding_id) to see the proposed change: without
applyit only previews. The response is a structured diff scoped to that one finding — typically very small.SHOW THE OPERATOR THE DIFF. Do not commit silently. The operator should see exactly which controls would be merged, what framework refs would consolidate, etc.
Get the operator's confirmation AND a one-line rationale (e.g. "cleaning up duplicates from pre-fix trigger bug").
Call remediate_finding(finding_id, apply=True, justification=) to commit. The platform records who, what, and why for the audit trail.
Never apply remediation without preview. The platform does not enforce this — it's the agent's responsibility to surface the change before committing.
Diagnose-and-hand-off findings. Some finding kinds have NO automatic remediation handler (remediate_finding returns 422) — they describe a gap for you to resolve directly with the control tools, then submit assertions / update_finding: coverage_gap (the CO's controls do not span its full threat → add the missing controls via regenerate_controls / import_controls, or dismiss if a false positive, or record a risk acceptance / assumption if intentional), insufficient_by_design (the controls defined for the CO's mitigation group would not mitigate it even if fully implemented → do NOT just implement the defined controls; redesign or add controls to the mitigation group via regenerate_controls / import_controls + set_mitigation_groups so the group can span the threat, or dismiss if a false positive, or record a risk acceptance / assumption if intentional), control_mechanism (an existing control's mechanism is wrong and could not be corrected automatically → edit, split, or remove it; the finding's details list the control's full CO-set so you see the blast radius before changing a shared control), misclassified_defense_in_depth (a defense-in-depth control is load-bearing for a CO's coverage → promote it into that CO's mitigation group via set_mitigation_groups). Do not call remediate_finding for these kinds.
Project setup
get_setup_status— check which onboarding steps are done and which are pending. Call before suggesting setup actions to avoid repeating completed steps.complete_setup_step— mark an onboarding step as done. Call after completing a setup action:mcp_configured(after MCP server is connected),mipiti_verify_installed(after installing mipiti-verify),ci_secret_added(after adding the API key to CI secrets),ci_pipeline_added(after adding the verification job to CI).
Trust boundaries and assumptions
Trust boundaries and assumptions are versioned (CRUD creates new model versions with carry-forward).
Decision rule — control or assumption? If a security requirement can be implemented and machine-verified in the codebase → it is a control. If it describes a property that must be upheld by an external party (customer, vendor, operator) and cannot be implemented by the system owner → it is an assumption. The trust boundary is the dividing line. When in doubt: if you cannot write a codebase assertion that proves it, it is an assumption.
get_threat_model— returns existing trust boundaries (along with assets, attackers, and assumptions). Use this to review current boundaries before adding or modifying them.add_trust_boundary/edit_trust_boundary— create or edit trust boundaries (defines where trust transitions occur); soft-delete one withremove_entity(entity_type="trust_boundary").sealed=Trueon its own is a suggestion; only an attested seal (edit_trust_boundarywithseal_source="attested"and achange_reason, by a person or a program the workspace delegatesseal_attestedto) lets reachability decisively drop an objective past the boundary. A change to the boundary'spasses,crosses,neighborsorsealedvoids the attestation.add_assumption— add an assumption, optionally linking it to COs it covers vialinked_co_ids. Linked assumptions can mitigate COs when attested.edit_assumption— update description and/or linked COs.remove_entity(entity_type="assumption")— soft-delete an assumption (preserved for audit). Its CO links are cleared and its attestations retired; controls whoseassumption_groupsname it keep their groups, which credit nothing through it while it is deleted.restore_entity(entity_type="assumption")— restore a soft-deleted assumption to active. Its CO links are not restored (set them again withedit_assumption), and it must be attested again before it counts anywhere it is linked or grouped.submit_attestation— record that a responsible party affirmed an assumption holds. Provideattested_by,statement, andexpires_at(ISO 8601, e.g. "2027-03-29T00:00:00Z"). Expiry triggers CO re-evaluation. Attesting accepts the assumption: a program is refused (403 withescalation_id) unless the workspace delegatesassumption_acceptedto it. Editing an assumption's description retires its attestation. An attestation is a claim: it can cover an existential clause and never a for-all one, and a CI-minted attestation is no stronger than the weakest assertion behind it.list_attestations— attestation history for an assumption.
Assumption types: Two types, set via assumption_type in add_assumption:
non_applicability— entity is not applicable to the feature. Requires CI verification (submit assertions + run mipiti-verify). Manual attestation is rejected. Originates from the taxonomy-classification step (which judges the feature against the closed 17-primitive taxonomy) or from operator-authored declarations. Generation-time validation failures on individual assets / attackers do NOT auto-create non-applicability assumptions; entities that exhaust the validation loop's retries receive aquality_warningfield for the operator to review.external(default) — responsibility handled by a third party that cannot be CI-verified against the codebase (e.g., vendor SLAs, infrastructure isolation, customer CI hardening). Allows manual attestation viasubmit_attestation.
Assumption-based mitigation: An active assumption with linked COs and a current (non-expired) attestation mitigates those COs. The assessment reports mitigated_by: "assumption" — this is a resolved state, not a gap.
Control-level assumption groups: For COs that span trust boundaries, individual controls can be marked as externally handled by assumptions. Assumption groups express alternative sets of external claims: within a group all assumptions must be active+attested (AND), any complete group suffices (OR).
get_control_assumption_groups/set_control_assumption_groups— inspect and set the full group structure. Useset_control_assumption_groupsfor every case: the common single-assumption, single-group case (write one assumption into group 1), compound cases ("AWS KMS + quarterly review" or "HSM + FIPS certification"), and multiple independent paths.
Violation workflow: When an assumption is violated or attestation expires, affected COs become at-risk. Four remediation paths:
Re-attest —
submit_attestationwith new expiry (assumption still valid)Restore —
restore_entity(entity_type="assumption")if assumption was soft-deleted and is still valid; re-attest after restoringConvert to controls —
convert_assumption_to_controlsretires the assumption linkage and proposes the control build its COs owe;start_control_buildstarts itAccept risk —
create_risk_acceptance(the exposure is real and is being carried), orcreate_co_disposition(the objective does not apply to this system at all). Both are signed, owned, justified and expiring;list_co_dispositionsshows what is already recorded.
Composition (recursive-tree multi-model)
Threat models can compose hierarchically — a child model inherits assets, attackers, components, trust boundaries, and baseline controls from its parent (and transitively from ancestors). With composition enabled, the effective model = own ⊕ inherited; the platform computes effective control objectives, coverage, compliance, reachability, attack paths, and finding inheritance over that composed view.
When to use: a child model that shares a security baseline with its parent (e.g., a feature built on top of a multi-tenant platform that already has auth / MFA / RBAC / KMS controls). Composition lets the child operator focus on the feature's delta while the parent's controls credit the child automatically.
Reading the composed view
Start with the overview, then drill in, all through get_composition:
get_composition(view="overview")— flag state, tree position, own-vs-inherited counts, reconciliation badge. Cheapest call (~1-2KB). Use first.get_composition(view="entities")— full own + inherited entity set per kind.get_composition(view="objectives")— effective CO list (classified own / cross / inherited).get_composition(view="coverage")— effective coverage / compliance numbers.get_composition(view="attack_paths")— AttackPath references resolved against the effective entity set (paths spanning inherited entities resolve cleanly).get_reachability_verdicts(composed=True)— composed reachability verdicts.
Reconciliation — surfaced cross-tree duplicates
When the same entity is authored on both the child and an ancestor (e.g., both name an "API Gateway" component), the detector surfaces it as a reconciliation candidate. Two tiers:
certain— identical name AND identical structural refs (same trust boundary / asset attachments). Auto-merge eligible.heuristic— identical name only; structural refs differ. Triage needed.
Tools:
list_reconciliation_candidates— the paginated candidate list with names, source-model titles, and reasons;disposition="rejected"lists the pairs rejected on the model instead.decide_reconciliation_candidate—decision="apply"collapses a candidate onto the inherited entity;decision="reject"records "these are NOT duplicates" (the detector filters the pair out of future queues, durable at org scope);decision="unreject"undoes a rejection.
Mutations — lift and split
When the operator confirms a duplicate should be reconciled, lift it to the lowest common ancestor (LCA). Inverse: split an ancestor entity down to specific descendants when the entity isn't shared after all.
lift_composition_entity— promote shared-anchor entity from two descendants to their LCA. Carries operator confirmations (LCA, third-party subtree acknowledgements, field-resolutions, attached-state resolutions, optional over-application-gate override). Emitslift_applied; audit pack surfaces underlift_history.split_composition_entity— push an ancestor entity down to operator-chosen descendants. Emitssplit_applied; audit packsplit_history.
Undo with divergence detection
Both lift and split mutations are reversible. The divergence detector refuses the undo with enumerated reasons if state has continued to evolve since the mutation (e.g., entity edited after lift, re-lifted further up, descendant collision, attached-state mutation, model deletion).
undo_composition_event(…)— by default (dry_run=True) a read-only preview of undoing a lift or split (pass the event type / id), returning{plan, refusal}; withdry_run=Falseit applies the inverse. Always preview FIRST. An applied undo emits one of:lift_undone— citingoriginal_event_id.split_undone— citingoriginal_event_id.
Operator pattern: preview → inspect plan or refusal-reasons → if clean proceed with apply; if refused, surface the enumerated reasons (operator decides whether to edit the divergence manually or accept it).
Cross-model dependencies (delegation)
Distinct from the parent/composition tree (containment): a reliance edge declares that one model depends on a control implemented in ANOTHER model — the right tool when a product is built on shared services (auth, logging, a shared datastore) rather than being a sub-part of them. The target is always a provider control, so credit terminates at a proven mechanism. Reliance is scoped to the current workspace: a consumer can only delegate to provider models in the SAME workspace (these tools don't see models across workspace boundaries), so pick the foundation from this workspace's models. These tools are available when the recursive-tree feature is enabled.
declare_foundation— mark a shared-service model as a foundation that advertises specific controls other models can delegate to.attach_foundation— bulk flow: withoutselectionsit proposes which of a consumer's objectives each foundation capability covers (read-only, scored); with the chosen subset asselectionsit creates draft delegation edges for them.manage_reliance— one edge at a time.action="create"declares a dependency:delegated(consumer has no local control for an objective; the provider handles it — passsource_objective_id) orrelied_upon(consumer keeps its own control but its validity depends on the provider's — passsource_control_id).action="confirm"promotes a draft edge to active: edges run LLM semantic validation on creation and carry NO credit until confirmed, and only when validation returnedvalid(apartialor mode-mismatch is refused — never silently credited).action="delete"removes an edge.list_reliance— a model's dependency edges (as consumer) plus who relies on it (as provider — the blast radius before changing its controls).
A delegated objective is credited only while the provider control stays verified; if the provider control regresses or a refined mechanism no longer satisfies the consumer, the edge breaks and a finding is raised on the consumer.
Tags (grouping)
A tag is an overlapping, semantics-free grouping of models — for audit scopes, ad-hoc selections, products or portfolios. It is a label, not a relationship: a model may carry MANY tags, and a tag never affects posture or credit (that's what delegation and composition are for). Use tags to organize and to get an aggregate view across a chosen set of models. The group tools act on tags.
create_group/delete_group— create or remove a tag (deleting affects the grouping only, never the member models).add_model_to_group/remove_model_from_group— manage membership; a model can be in many tags at once. A model added to a tag takes on the frameworks the tag selected.list_groups/get_group/list_model_groups— browse tags, read one with its members, or list a model's tags.get_group_dependencies— the reliance edges among a tag's members, each with its status and whether it credits its objective.get_risk_view— aggregate per-CO risk across a tag's members (scope="tag"). Delegation-aware, so a CO mitigated via a verified cross-model delegation reads as covered, consistent with the per-model assessment.
A tag can also be a compliance / audit scope spanning several models: select_compliance_frameworks scoped to the tag selects frameworks for the tag and propagates them to its members; get_compliance_report scoped to the tag gives cross-model requirement coverage; export_report scoped to the tag produces the signed auditor HTML (every member's report, after the reliance edges among the members with their status).
Functional conformance
Functional conformance proves a feature does what it was specified to do — the parallel of security controls, verified by the same assertion + CI engine. Capabilities are the behaviours the feature must deliver; each is tested against a taxonomy of operating conditions (nominal, boundary, dependency-failure, …), and a Functional Objective is a Given-When-Then acceptance criterion. Two ways to establish coverage:
Generate (top-down). generate_functional_objectives derives capabilities, objectives, and the concrete tests to write; get_scan_prompt (pass the functional kind) returns the per-test brief; implement each test, register it with add_functional_test, then submit TEST_EXISTS + TEST_ATTESTED evidence with submit_assertions (pass functional_test_id) so CI verifies it.
Import (bottom-up) — bring the tests you already have. import_functional_tests registers your existing codebase tests (optionally with the objectives they cover; the platform verifies each association is applicable before accepting it). For tests you don't map yourself, suggest_functional_test_mappings proposes which objective each one actually proves (judged on behaviour, with a confidence) and associate_functional_test confirms a mapping — so an existing suite counts toward conformance, not only Mipiti-specified tests.
get_capabilities— every capability, or one bycapability_id.get_functional_coverage— the Capability × Condition coverage report;gaps_only=Truereturns just the actionable gaps (uncovered cells, failing/untested objectives).set_functional_satisfaction_groups/get_functional_satisfaction_groups— when several tests must together prove an objective, group them (within a group all must pass; any complete group proves the objective).get_sufficiencywithfunctional_test_id— whether a test's submitted evidence is sufficient to prove the objective it targets.
Compliance
list_compliance_frameworks— available frameworks (SOC 2, ISO 27001, etc.).import_compliance_framework— import a customer-specific framework (regulatory, contractual, or internal program not covered by the built-ins). Accepts a JSON body withname,requirements, and the optionallevel_definitionsper-level legend.select_compliance_frameworks— activate frameworks for a model (or, by scope, for a tag). Automatically triggers auto-remediation for a model: maps existing controls, excludes non-applicable requirements by taxonomy, and suggests/applies new entities for remaining gaps. Returnsauto_remediate_jobswith job IDs for polling.get_compliance_report— coverage report for a model, or for a tag by scope (run after auto-remediation completes).auto_remediate_compliance— re-trigger auto-remediation manually (e.g. after model changes).auto_map_controls— map controls to framework requirements (runs automatically during auto-remediation, but can be triggered independently).map_control_to_requirement— manually map a specific control to a specific requirement (use when auto-mapping misses or misassigns).
Per-entity grades
Some frameworks (IEC 62443, ISO/SAE 21434, NIST CSF, FIPS 140-3, Common Criteria) carry per-entity level grades alongside the control-to-requirement mapping:
edit_componentwithtarget_sl/eal/fips_level— set per-component IEC 62443 SL (1-4), CC EAL (1-7), FIPS 140-3 (1-4). Orthogonal axes; set whichever the customer program requires.set_control_objective_cal— set per-CO ISO/SAE 21434 Cybersecurity Assurance Level (1-4). Lives on the CO identity table; survives soft-delete.update_organization— set per-org IEC 62443-4-1 Maturity Level (1-5) and NIST CSF Tier (1-4). Admin-only.
Workspaces
Every MCP credential is bound to one workspace when it is issued (an API key by its scope, an OAuth token by the workspace chosen on the consent screen), and every tool operates in that workspace. To work in another workspace, connect with a credential issued for it; there is no tool that lists or switches workspaces.
Components
Components bridge security architecture (trust boundaries) to code organization (repos). Add components to a model to scope controls to specific codebases AND to ground the deterministic reachability composer's asset-boundary derivation.
add_component— create a component with name, repo_url, and optional path (for monorepos) and trust_boundary_ids.edit_component— modify a component; delete one withremove_entity(entity_type="component").get_controlswithcomponent_id— filter controls by component.assign_to_components— link an asset (or a control) to one or more components. For an asset this drives the reachability composer's per-CO verdicts.
When to populate components
generate_threat_model proposes speculative components (with repo_url="") when no topology has been supplied. These are a starting point — refine them as code grounding emerges:
Existing codebase: a component is created against a model, so there is none to supply before one exists. Call
generate_threat_modelfirst, with the services you found written intofeature_description, thenedit_componenton each speculative component it proposed, swappingrepo_urlandpathto the real values, oradd_componentfor the ones it missed.Planning conversation, no code yet: call
generate_threat_modeldirectly; the LLM-proposed speculative components serve as a topology starting point the user/developer refines as the design firms up.repo_urlstays empty until code exists; the coherence report flagscomponent_unboundfindings on speculative components so they're visible to auditors.
A component with empty repo_url is the natural signal "speculative — not yet bound to code." A component with a populated repo_url is grounded. There is no separate status field — the binding is the state.
But an empty repo_url covers two different things, and the component's trust boundary tells them apart. A component in one of YOUR internal zones (your own backend/frontend/service repos) is your code — ground it to the repo. A component in an EXTERNAL trust zone — e.g. a third-party service, the customer's IdP, or other infrastructure you call but do not own — has no repo of yours; leave it unbound, where component_unbound is the correct permanent marker of an external dependency, not a TODO. The test is the trust boundary, never "does some client code touch it": client code for almost every dependency lives in your repo, so that alone never justifies binding an external component.
Long-running operations
generate_threat_model, generate_from_behavioural_model, refine_threat_model, auto_remediate_compliance, auto_map_controls, and check_control_gaps run LLM pipelines that may take several minutes. They block until complete and report progress automatically; no polling is needed for the operation itself. Entity writes (add_asset, edit_asset, add_attacker, edit_attacker, remove_entity) run as background jobs and report progress while they wait; a job a client stops waiting for finishes or fails on its own, so read the model before writing again.
Control builds. A model's controls are built only by a build someone starts. Generating or refining a model, editing an entity, and regenerate_controls each PROPOSE a build and start nothing: their result carries controls_status: "proposed" and a proposal (what it would build, estimated_credits with its basis, and the model_version, set_revision and scope_revision a start must name), and get_control_generation_status shows the same proposal. Do not report controls as built, or wait for them, until a build has been started. The proposal also names what to review first: flagged_entities (a judge's warning, a rating nobody chose, a suspected duplicate) and pending_attestations (a seal, position or privileges that, once attested, would remove objectives from the build); neither blocks a start. A seal claims its boundary for every attacker behind it: where the true claim is only that one attacker has no path to an asset, disposition_offers names that attacker's waiting objectives, and create_co_disposition on each (the owner's judgement) is the narrower act. Review the model with the user, show them the estimate, and once they agree call start_control_build(model_id, model_version, set_revision, scope_revision, confirm_estimate=True). To build only some of the objectives proposed, name them in objective_ids on both calls: the estimate is for those, the build keeps every other objective's controls, and the rest stays proposed. A model holds one proposal, so a narrower regenerate_controls merged into a broader proposal builds the broader one unless the start names the part. A review_stale refusal means the model, its controls or the objectives the build would author changed since you read the values: review again and start with the values it returns. A started build holds the model until it publishes: other writers of its controls are refused (generation_active), and reads show the last published controls. Poll get_control_generation_status (it returns terminal and a hint) until the status is terminal, then read the controls with get_controls. deferred means the workspace's daily background-analysis budget is used up; the build resumes automatically at the daily reset — surface that, no action needed. paused means someone stopped it: its work so far is kept but not published, and only resume_control_generation continues it. To stop a build the user did not want, call pause_control_generation; once it shows paused, discard_control_build drops its work and proposes it again, and the model can be deleted as usual.
Every change to the controls is a revision. list_control_revisions shows who changed what; undo_model_change(target="controls") undoes the latest change (latest first, no redo); undo_model_change(target="version") replaces the latest model version with a copy of the latest earlier version not already discarded, keeping the replaced one in the history as discarded.
Strengthening runs when asked. A completed build reports strengthening and a diagnosis (objectives covered, uncovered, undecided, judging, not judged, or waiting on an assumption decision). judging counts objectives whose judgement is queued: wait for them. not_judged counts objectives with no judgement for their current controls and none queued: to have them judged now, call judge_objectives (estimate first, then confirm_estimate=True). Unless the workspace strengthens automatically, nothing works on the uncovered ones until strengthen_controls is called: call it once to get the estimate, show the user, and call it again with confirm_estimate=True and the model_version and set_revision the estimate returned to start. A gap only the environment can close is answered with an assumption, never a control: an accepted one is bound into the group, and otherwise a proposal waits in the review queue for a person to accept (with an expiry) or reject.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
| logging | {} |
| prompts | {
"listChanged": true
} |
| resources | {
"subscribe": false,
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| generate_threat_modelA | 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: Saved first: where the platform models what the system does, the
model is saved holding the description and generated from it later.
Answer: |
| generate_from_behavioural_modelA | 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 ( Answer: as Refusals come back as data, |
| refine_threat_modelA | 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:
|
| query_threat_modelA | 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 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 |
| list_threat_modelsA | List saved threat models in the current workspace. Read-only; no side effects. Returns |
| update_threat_modelA | Change a threat model's metadata: its name, its parent, where its description came from. Mutating; pass only what changes.
Changes apply in that order. Returns |
| declare_foundationA | 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 Each entry in |
| list_relianceA | List a model's cross-model dependency edges, in both directions. Read-only; no side effects. Returns Use this to inspect existing dependencies before creating or deleting edges ( |
| manage_relianceA | Create, confirm or delete one cross-model reliance edge. Mutating.
|
| attach_foundationA | Delegate this model's objectives to a foundation's controls, in bulk. Without With |
| delete_threat_modelA | 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 |
| get_threat_modelA | Get a threat model by ID: its trust boundaries, assets, attackers, assumptions and components. Read-only. The answers to its questions are counted (
Important for agents reading model state:
|
| import_threat_model_archiveA | Import a JSON audit archive (a file
Mutating when it imports: creates a NEW threat model in the target
workspace. Requires write access to that workspace. A fresh model_id is
assigned on every import, so the same archive can be imported any number
of times without collisions; a title already used in the target
workspace gets a numbered suffix ( The archive carries the model's current state, and the import creates it as version 1 of a new model: its controls, live assertions, decisions in force and open findings. Earlier versions, activity and chat are not carried. The restored model arrives UNVERIFIED. The tier verdicts on its assertions, the attested flag on a verification result, and the facts a verification run reported are the origin's record of what it claimed — kept with the model as that record, and not credited here: a verdict belongs to the run that produced it and the judge that decided it, and this workspace has neither. Verification is earned here by running it against code this workspace can reach, so plan for a restored model to read unverified until it has. The same holds for the judgements of its mitigation groups: the import queues none, and its objectives read awaiting judgement until someone asks for them. |
| get_control_generation_statusA | A model's proposed control build and its last started one. Read-only. A build runs only when started.
Running:
|
| pause_control_generationA | 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 ( Returns one of:
|
| resume_control_generationA | Resume control generation that was paused, or retry one that stopped before finishing. Mutating. Use when Returns one of:
|
| strengthen_controlsA | Strengthen a model's controls: work on the objectives whose mitigation
groups the background judge found do not cover them (the
A gap only the environment can close (hosting, a third party) is never
answered with a control: an accepted assumption stating it is bound
into the group; otherwise an assumption proposal waits in the
review queue ( Refusals come back as data, |
| judge_objectivesA | Have judged every objective whose mitigation group has no judgement for
its current controls and none queued (the diagnosis's
A judgement is not a repair: it can come back insufficient or undecided,
which counts the objective as Refusals come back as data, |
| regenerate_controlsA | 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
This tool records the regeneration as the model's PROPOSED build and
returns at once with To rebuild everything, omit |
| start_control_buildA | Start the model's proposed control build, or part of it. Mutating
only with Generating or refining the model, editing an entity and
Refusals come back as data ( |
| discard_control_buildA | Discard a model's held control build. Mutating. A build that is Returns one of:
|
| list_control_revisionsA | 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 |
| undo_model_changeA | Undo the latest change to a model's controls, or revert its latest version. Mutating.
A refusal comes back as |
| update_control_statusA | 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 |
| refine_controlA | Refine a control's description with AI-gated CO sufficiency check. Two modes:
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 the proposed description would reduce the
protection the control currently states for an objective it is mapped to;
After an accepted refinement the control's assertions are kept
and judged again against the new description in the background: an
assertion that still fits keeps counting as evidence, and one that no
longer fits is flagged as not aligned with the control. Read
|
| remap_controlA | Mechanical, non-AI-gated remap of a control's CO mappings. Distinct from 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. |
| apply_control_changesetA | 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 delete paired with a covering remap or add in the same changeset is allowed; a changeset that would leave any previously-covered control objective uncovered is rejected as a whole and nothing is written. |
| model_coherence_reportA | 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
An indeterminate reachability verdict means the structure it needs is
missing: supply it. It never means the objective is inapplicable, which
is a separate claim recorded with |
| get_compositionA | A model's composed view: its own entities with everything inherited from its ancestors on the recursive tree. Read-only.
Where composition is not available, every view returns its shape empty
with |
| decide_reconciliation_candidateA | Decide a reconciliation candidate from
503 where composition is not available on the backend. |
| lift_composition_entityA | 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 Conflict resolution. The server re-detects field-level and
attached-state conflicts against current live state before applying.
If new conflicts have surfaced since the operator's last candidate
fetch, the call returns 400 with the missing conflict keys; refresh
the lift-candidate view and resubmit with resolutions covering every
key. Each entry in Over-application gate. The lift extends visibility to every descendant
of the LCA, not just the two source descendants. The server runs an
over-application gate that refuses lifts touching descendants outside
an acknowledged set; pass Each affected model (LCA + both descendants) bumps version and emits a
|
| split_composition_entityA | 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 The route's |
| get_mitigation_groupsA | 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:
Use cases:
|
| set_mitigation_groupsA | 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
Mitigation groups define alternative paths to satisfy a CO:
|
| edit_evidenceA | 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. |
| import_controlsA | 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 |
| judge_imported_controlsA | Have the imported controls awaiting their judgement judged. Mutating
only with Controls saved by
Refusals come back as data, |
| delete_controlA | 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. |
| check_control_gapsA | 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_modelA | 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 Use summary_only=True to get just the counts without per-CO assessments. Paging: a read with |
| get_review_queueA | Returns the workspace's review queue: what needs a decision or a re-check, ranked. Read-only; no side effects. Each row carries an |
| add_assetA | 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 The platform reasons the factor decomposition and composes A proposal matching a soft-deleted asset is gated: it either restores
that asset ( |
| edit_assetA | 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
The composed New words (name, description, security properties) are rated for: one
rating call, at your cost; a rating a person chose is kept and the new
one held pending beside it. Adopting a quality check's LLM-gated on identity-bearing fields (name, description, security_properties). Factor and notes edits skip the gate. Outcomes when identity fields change:
Editing a soft-deleted asset is rejected — |
| add_attackerA | Add a new attacker to a threat model. Creates a new version. Authoring contract: The caller supplies identity-bearing fields (capability, position,
archetype, trust_boundary_ids); the backend reasons the factors.
Override one later via Three outcomes (normal create / auto-restore / similar-rejection)
mirror
|
| edit_attackerA | Edit an attacker; only the fields given change.
Attesting is a judgment: a person's edit attests what it writes
( 400 when factor fields, |
| reevaluate_threat_model_factorsA | Re-run the LLM factor judgment on a model's live assets and
attackers: every one, those A rating a model made is replaced with a fresh decomposition and its
impact / likelihood re-derived from it. A rating a person chose is never
replaced: the answer is held pending beside it ( Per-entity soft-fail: a failure on one entity lands in
Re-ratings keep the model version, except where an answer changes an
attacker's |
| get_verdict_divergenceA | Where the LLM's verdicts disagree with the model's authored state. Two coverage divergence kinds, distinguished by the LLM's
Rows are sorted by confidence, so the strongest calls come first. Each
section is paginated: its Also returns |
| resolve_verdict_divergencesA | Accept a batch of coverage divergences as mapping changes, or dismiss a batch of divergences. Mutating.
|
| list_compliance_frameworksA | 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 |
| import_compliance_frameworkA | 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: Each requirement takes
Example:: |
| map_control_to_requirementA | 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. |
| auto_map_controlsA | 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. |
| update_organizationA | 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.
Because |
| add_componentA | 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'
Generation reads no components, so add or edit them after
A component with empty |
| edit_componentA | 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 ( |
| get_group_dependenciesA | The reliance edges among a tag's member models. Read-only; no side effects. Returns Use it to review the cross-model dependencies of a product or audit
scope before an auditor export, or to find broken edges. A model's own
edges, in both directions, are |
| get_assertion_typesA | List the assertion types submit_assertions accepts, with their params. Read-only. Returns the catalogue as structured data: every type, what it
proves, its Call this before writing assertions. submit_assertions names the types and their required params in its own description, but descriptions are prose a client may present only in part, and a half-list reads exactly like a whole one. This returns data, so what you get back is the complete contract. |
| submit_assertionsD | 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]
Each: type, params, description, repo ("/" or "no_repo"), covers beside them, never in params: the CO-NN or cls_ ids proved. A for-all clause takes only typed_boundary (sinks accept one boundary type) or, when they do not, sink_default_deny, bound with covers. |
| list_assertionsA | 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 Each assertion also carries three INDEPENDENT verdict fields. Read them together — a passing tier check is not the same as sufficient evidence:
An assertion can pass BOTH tiers while its control stays unverified,
because verification is decided per CONTROL, not per assertion: a
control verifies only when its assertions collectively cover every
clause of the control description. Read Each assertion also carries |
| delete_assertionA | 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 Use to retract a claim that was submitted in error or that |
| get_verification_reportA | 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
A drift item means the accepted evidence changed (a test's definition, a witness's scope or allowlist) and its verdict was withdrawn until reviewed again. By default returns summary only (no per-assertion details). Set summary_only=False to include full assertion details and drift items. |
| get_sufficiencyA | 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
Act by submitting the named assertions; a clause describing a mechanism
the system does not use calls for For a functional test it is whether its evidence proves the objectives it is associated with, with the reasoning; it can read pending or absent until evidence is submitted. |
| submit_findingsA | 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 |
| list_findingsA | 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 |
| update_findingA | 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 |
| remediate_findingA | Preview, and on confirmation apply, the platform's remediation of a finding. Without With 404 when the finding does not exist; 422 when its kind has no automatic remediation (resolve those with the control tools); applying a finding already remediated or dismissed is refused (409). |
| get_findings_risksA | 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: |
| get_remediation_leverageA | 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 ( Composed models: each entry in |
| list_risk_acceptancesA | 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
( 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
|
| create_risk_acceptanceA | Record that an operator explicitly ACCEPTS the residual risk on a control
objective instead of mitigating it — the write counterpart to
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 |
| create_co_dispositionA | Record that a control objective DOES NOT APPLY to this system — a signed, expiring judgment, not a dismissal. The sibling of The objective is not removed. It stays in the control-objective matrix, stays in every coverage count, and is reported in its own class alongside the owner and justification recorded here. That is the point: a reviewer can see the judgment and challenge it. An objective that simply vanished would be indistinguishable from one nobody modelled. What it does change is work: no controls are generated for the objective and no coverage gap is raised against it, because an objective that does not apply is not a gap.
Use |
| revoke_co_dispositionA | 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 ( 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
( Use it when the person who owns a judgment withdraws it, or when it was recorded in their name before they made the call. |
| list_co_dispositionsA | 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-signing rather than duplicating. |
| complete_setup_stepA | 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_statusA | 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 |
| add_trust_boundaryB | Add a trust boundary. Creates a new model version. Returns |
| edit_trust_boundaryA | Edit a trust boundary. Creates a new model version. Returns Attesting the seal is a judgment: a person's edit attests it; a
program's only under a workspace rule delegating |
| add_assumptionA | Add an assumption. Creates a new model version. Returns A Assumptions represent security properties outside the system owner's trust boundary. When linked to COs and attested, they mitigate those COs in the assessment. Optionally attach a structured exclusion predicate (the
Use this to resolve a CO whose composer verdict is
|
| edit_assumptionB | Edit an assumption. Creates a new model version. Returns |
| submit_attestationA | 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 An attestation is a responsible party's claim, never a proof over every
site: it can cover an existential clause of a control (its tier reads
|
| list_attestationsA | 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 (entity_type="assumption"). |
| get_control_assumption_groupsA | Get the current assumption group structure for a control. Assumption groups define alternative sets of external claims that can satisfy a control:
|
| set_control_assumption_groupsA | 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.
To clear all assumption groups (revert to "not externally handled"),
pass an empty JSON object: AI relevance gate (per group, no override): Each non-empty proposed group is evaluated independently. The behavior depends on how many groups pass:
There is no force-override. To get a group accepted, choose assumptions whose descriptions actually cover the control or refine an assumption's description so coverage is explicit. |
| convert_assumption_to_controlsA | 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
Side effect on control-level linkage: this assumption is also removed from every assumption_groups entry on every control that referenced it. Any group left empty by the removal is dropped; a control's status is not changed, and a control left with no group is no longer backed by an assumption. Underlying assumptions are not deleted — only the linkages. |
| generate_functional_objectivesA | 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.
|
| get_capabilitiesA | A model's capabilities (behaviours the feature must deliver), or one of them. Read-only. Without |
| get_functional_coverageA | 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
|
| add_functional_testA | 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 functional_test_id. |
| import_functional_testsA | 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 |
| suggest_functional_test_mappingsA | 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. |
| associate_functional_testA | 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
|
| get_functional_satisfaction_groupsA | 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_assumption_groups / get_mitigation_groups. |
| set_functional_satisfaction_groupsA | 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 |
| get_cwe_catalogA | Get the platform's CWE reference catalog status. Returns |
| get_model_cwe_tagsA | 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 |
| classify_model_cweA | 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 |
| get_entityA | Get a single entity of any core type by ID. Read-only. Dispatches on
|
| remove_entityA | Soft-delete a single entity of any core type. Mutating: creates a
new model version. Reversible with 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. Dispatches on
Returns |
| restore_entityA | Un-soft-delete a single entity of any core type, reversing a prior
Dispatches on
Returns the entity-change result: |
| get_risk_viewA | Prioritized Risk View — one row per live Control Objective — at a chosen scope. Read-only; no side effects.
|
| get_compliance_reportA | 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
Filtering / pagination:
A tag report is neither paginated nor status-filtered; passing |
| select_compliance_frameworksA | Select (activate) compliance frameworks at a chosen scope. Requires PRO tier. Mutating. Discover valid ids with
|
| export_reportA | Export a threat model or a tag as a downloadable document. Read-only; no side effects on the source.
A model's |
| get_export_statusA | The state of an export Done, it answers the file's |
| list_groupsA | 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 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 |
| create_groupA | 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 |
| add_model_to_groupA | 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. |
| get_groupA | Get one tag by ID, with its member model ids. Read-only; no side effects. Returns |
| delete_groupB | 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. |
| remove_model_from_groupA | 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. |
| list_model_groupsA | List the tags a given model belongs to. Read-only; no side effects. A model may belong to many tags. Returns |
| get_reachability_verdictsA | Per-CO reachability verdicts, over this model alone or the composed tree. Read-only; derived each time, never stored.
An indeterminate verdict names the missing structure:
|
| recompute_verdictsA | Estimate, force, or retry a model's verdict evaluation.
Work runs in the background; when A recompute evaluates COVERAGE and GROUP SUFFICIENCY only. A control at
|
| judge_objectiveA | Have one control objective's mitigation group judged. Mutating — queues background work and may consume credits. Use this for an objective whose This is not a repair. The judgement can come back insufficient, which
moves the objective to Scoped to ONE objective, which is the difference that matters against
Judging runs in the BACKGROUND; the call returns as soon as the work is
queued. Re-read A refusal comes back as data rather than an error, so it can be relayed:
|
| list_reconciliation_candidatesA | 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
Where composition is not available both come back empty with
|
| undo_composition_eventA | Preview, and on confirmation apply, the undo of a lift or split.
By default ( With 503 where composition is not available. |
| get_functional_objectivesA | 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.
For pass/fail coverage state across all objectives use
|
| get_controlsA | A model's controls, or one control. Read-only. Without With An objective id on a control is an ATTACHMENT, not credit: only a member
of a required mitigation group earns any, and a control that is
defense-in-depth everywhere can be implemented and verified without
moving an objective. Read
|
| get_control_objectivesA | Get the control objective matrix, or one control objective. Read-only. Two modes, selected by whether
For pass/fail assurance scoring use |
| get_objective_groupingA | 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 |
| set_objective_groupingA | 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 Grouping forms the groups from scratch; stopping deletes every group,
so each asset has its own objectives again. Either way the controls'
mappings move with the objectives ( |
| assign_to_componentsA | 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).
Both variants are mechanical / non-AI-gated and validate only that
every referenced component exists on the model. An asset's answer
carries the model's id, version and title, and |
| get_scan_promptA | Get guidance prompts for scanning a codebase. Read-only; no side effects.
|
| set_control_objective_calA | 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 Pass |
| revalidate_entity_qualityA | 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 control objective loses its asset or attacker anchor. It creates no new model version: the re-validation is queued and runs in the background, and the refreshed warnings appear on the next read of the model. May consume credits for the entities that need the deeper review; a model
already in good shape costs nothing. Returns at once with
|
| auto_remediate_complianceA | 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
Converges automatically: stops when fully covered or when no further progress can be made. This runs automatically when a framework is selected, but can be re-triggered manually if the model changes. |
| get_control_work_orderB | The work order for one control: the ticket to read BEFORE implementing it. Read-only. Returns Where the order names a required class for a clause,
A type's |
| reconcile_modelA | 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:
The platform decides the consequence. Proposals are never applied on
the agent's word, with one exception: a component change on a
code-derived model (provenance |
| create_proposalA | 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 |
| list_proposalsA | 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: An open row may carry |
| get_review_playbookA | 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:
Pass |
| close_review_runB | 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. |
| get_review_runB | 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. |
| decide_proposalA | 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 This is a judgment. The call is refused with HTTP 403 and an
Accepting an A rejection made in error is reconsidered with An |
| decide_proposalsA | Decide several proposals and escalations of one model together (at
most 200), each exactly as |
| decide_drift_intentA | 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.
A program's decision is refused with 403 and an |
| get_design_leverageA | 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 |
| list_decisionsA | 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 proposal or asking for a judgment, so you do not propose what a person rejected or ask again for what was already decided. The ledger is append-only. There is no tool that edits it; to undo an
accepted proposal, revert or re-decide, never edit the record. Rows
with |
| get_behavioural_modelA | Read a model's behavioural model: what the system does, as elements, actions and zones taken from its description. Read-only.
|
| extract_behavioural_modelA | Give a model that has no behavioural model one. Mutating only with
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.
Refusals come back as data, |
| regenerate_behavioural_modelA | Check a model's behavioural model against its description with an
independent reading. Mutating only with 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 Ask for one after a substantial amendment of the description (a new
capability, a changed flow, a paragraph of new text), once for the
amendments together, and before generating controls or certifying when
Refusals come back as data, |
| reread_behavioural_descriptionA | Re-read the description changes nothing has read into a model's
behavioural model yet. Mutating only with For when
Refusals come back as data, |
| answer_behavioural_questionsA | Answer open behavioural questions, many in one call. Mutating; creates a model version. Answer only from what the code or the owner shows; else An answer is a fact ( Where a question's A program's answer is a judgment: 403 with an |
| edit_behavioural_elementA | 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 A program's edit is a judgment. Unless the workspace's delegation policy
admits it, it is refused with 403 and an Returns what the edit did, not the whole model: |
| remove_behavioural_elementA | 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
A removal narrows what the analysis reads, so it is a judgment: a
program's is refused with 403 and an Returns what the removal did, as |
| release_behavioural_elementA | Release an element held as written (its 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 A release is a judgment: a program's is refused with 403 and an
Returns what the release did, as |
| release_behavioural_elementsA | Release several elements held as written in one model version, as
Use it when several questions of closure A release is a judgment: a program's is refused with 403 and an
Returns |
| confirm_behavioural_modelA | 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 Where a regeneration is owed before certification, the confirmation is also consent to that regeneration and the certifications after it, so it is estimated first:
When no regeneration is owed the call confirms at once, as before. A 402 (the balance cannot cover the estimate) and a 409 come back as
data, A program's confirmation is a judgment. Unless the workspace's delegation
policy admits it, it is refused with 403 and an |
| accept_behavioural_proposalA | 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 ( A program's acceptance is a judgment: refused with 403 and an
Returns |
| get_behavioural_linksA | 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 |
| declare_behavioural_linkA | 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 Returns |
| match_behavioural_linksA | Match the behavioural elements and zones never matched against the
inventory ( Without |
| accept_behavioural_link_proposalsA | Declare every link proposal as shown, in one act. Mutating; creates no model version. Relay the proposals to the person first: read them with
A program's acceptance is a judgment. Unless the workspace's delegation
policy admits it, it is refused with 403 and an Returns the links as |
| get_behavioural_attackersA | 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 |
| answer_attacker_credentialsA | 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: A program's answer is a judgment. Unless the workspace's delegation
policy admits it, it is refused with 403 and an Returns |
| add_proposed_attackerA | Add the attacker the attacker closure proposes for a credential set. Mutating; creates a model version. Name the proposal by its A program's addition is a judgment. Unless the workspace's delegation
policy admits it, it is refused with 403 and an Returns |
| dismiss_proposed_attackerA | 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. A program's dismissal is a judgment. Unless the workspace's delegation
policy admits it, it is refused with 403 and an Returns |
| split_grouped_attackerA | Split an attacker that stands for zones of several capabilities into
the parts Name each part by its A program's split is a judgment. Unless the workspace's delegation
policy admits it, it is refused with 403 and an Returns |
| keep_attacker_wholeA | 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
A program's decision is a judgment. Unless the workspace's delegation
policy admits it, it is refused with 403 and an Returns |
| get_inventory_judgementsA | Read what the per-entity checks found about a model's inventory. Read-only: no model is called and nothing is queued. Returns Relay a disputed pair to the person; |
| request_inventory_checksA | 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
Those the platform made stale are recorded as its own request, the rest
under the caller. The answer holds |
| decide_inventory_pairA | 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.
A program's decision is refused with 403 and an Returns |
| declare_inventory_tagsA | 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
A program's declaration is refused with 403 and an Returns |
| apply_entity_proposalsA | 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 ( Read the correction as One Returns |
| check_entity_qualityA | 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
Checking may be paid. Call it first without Returns |
| answer_entity_questionA | Answer, with a fact, the flag the quality check raised about an asset or attacker. Mutating; creates no model version. An entity's Refused 409 Returns |
| settle_entity_ratingA | 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.
Returns |
| get_control_deltaB | 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. Once a person declares the delta, the control's sufficiency is judged
against the declaration's commitments, not a reading of its text, and
|
| submit_control_deltaA | 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
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 credit a control alone, and a program's
never replaces a delta a person declared (409 Returns the delta as |
| request_delta_second_readingA | 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 |
| declare_control_deltaA | 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 With |
| get_behavioural_threatsA | 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 A page at a time, in the model's order of objectives: A possible threat is not a finding yet. RELAY IT TO THE PERSON with its
default questions first: an answer that settles a default removes the
threat, and only a threat the person confirms is worth a control. Answer
with |
| request_model_checkA | Request a model check of the obligations the behavioural analysis
could not settle. Mutating only with 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.
Refusals come back as data, |
| get_model_checkA | Read a model's model check: the live one, else the latest. Read-only.
|
| manage_model_checkA | Pause, resume or discard a model's live model check. Mutating.
A refusal comes back as data, |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 175 tools
The surface contains many adjacent clusters: triage/assessment tools (get_findings_risks, get_risk_view, get_review_queue, assess_model, check_control_gaps, model_coherence_report), control-generation/judging tools (regenerate_controls, start_control_build, strengthen_controls, judge_objective, judge_objectives, judge_imported_controls, recompute_verdicts), and behavioural-model read/edit tools. Descriptions cross-reference each other and often clarify boundaries, but with 175 tools the agent must read closely to avoid misselection, and several decision/review paths are hard to distinguish at a glance. Multiple tools still have unclear boundaries in practice.
Nearly all tools use consistent snake_case, generally in a verb_noun pattern (get_threat_model, add_asset, submit_assertions, decide_proposal). Minor deviations exist, such as noun-oriented names (model_coherence_report, get_findings_risks) and singular/plural bulk pairs, but the convention is broadly predictable.
175 tools is an extreme mismatch for a single MCP surface, far beyond the 3-15 well-scoped range and well past the 25+ threshold. Even for a complex threat-modeling platform, this many specialized operations creates severe selection burden and suggests the surface should be split into domains.
The tool surface covers an unusually complete lifecycle: model creation, refinement, deletion, export/import, entity CRUD and restore, controls, assertions, findings, risk acceptances, dispositions, compliance mapping, tags, behavioural modeling, reviews, and generation workflows. No obvious core operation is missing for the stated threat-modeling and assurance domain.