Skip to main content
Glama
Mipiti MCP Server
by Mipiti

Import Threat Model Archive

import_threat_model_archive

Import a JSON threat model archive into a workspace as a new, unverified model. Run it locally to upload the file, or get the in-app import link for hosted setups.

Instructions

Import a JSON audit archive (a file export_report (scope="model", format="archive") produced) into a target workspace. Its contents never pass through this call: they must arrive exactly, and copied as text they would fill your context and could change.

  • Locally run package: name the archive with file, a file in the exports folder (the saved_to path export_report(save=True) gave, or that path relative to the folder). This server reads it from disk and uploads it; a path outside the folder is refused.

  • Hosted server, or no file: nothing is imported. The answer's import_in_app (where, url) is where the person imports it in the app, signed in to the target workspace: give them both.

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 (Checkout (2)). Non-destructive — never overwrites or touches an existing model.

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.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "server_version": "<server_version>",
      "workspace_id": "<workspace_id>"
    },
    "name": "import_threat_model_archive"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileNoThe archive in the exports folder (locally run package only).
workspace_idYesTarget workspace to import into.
server_versionYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.108.0
    • removedInput schema / properties / envelope
      Removed value: -{
      -  "additionalProperties": true,
      -  "description": "The full archive dict returned by\n``export_report (scope=\"model\", format=\"archive\")``.",
      -  "type": "object"
      -}
    • addedInput schema / properties / file
      Added value: +{
      +  "default": "",
      +  "description": "The archive in the exports folder (locally run package only).",
      +  "type": "string"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "server_version",
      -  "envelope",
      -  "workspace_id"
      -]New value: +[
      +  "server_version",
      +  "workspace_id"
      +]
  2. Changed1 schema field changedv0.68.2
    • changedInput schema / properties / envelope / description
      Previous value: -"The full archive dict returned by\n``export_threat_model_archive``."New value: +"The full archive dict returned by\n``export_report (scope=\"model\", format=\"archive\")``."
  3. Changed1 schema field changedv0.66.0
    • changedInput schema / properties / envelope / description
      Previous value: -"The full archive dict returned by\n`export_threat_model_archive`."New value: +"The full archive dict returned by\n``export_threat_model_archive``."
  4. Addedv0.62.2
  5. Removedv0.62.1
  6. First observedv0.57.0

TDQS

A3.9/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description does substantial work: it declares the tool mutating, requires write access, creates a new model with a fresh model_id, applies numbered title suffixes, and is non-destructive toward existing models. It also enumerates what is and is not carried over (current state yes; earlier versions, activity, chat no). The long verification paragraph is real behavioral context, but the density and metaphor-heavy phrasing ('a verdict belongs to the run that produced it and the judge that decided it') dilute how quickly an agent can extract the key facts.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Bulleted structure and front-loaded purpose are good, but the text is bloated: the opening metaphor about context-filling, the repeated non-destructive reassurance, and the multi-sentence verification/mitigation-judgement digression go well beyond what an agent needs to invoke the tool correctly. Tightening by roughly a third would lose nothing.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a mutating import with an output schema present, the definition covers permissions, collision handling, content scope, and the unverified-verdict caveat, which is the main surprise an agent could hit. The gap is `server_version`, a required parameter with no described semantics anywhere.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 67% and the description only really enriches `file` (exports-folder confinement, refusal of outside paths, relationship to the `saved_to` path) and implicitly `workspace_id` (target, needs write access). The required `server_version` parameter is left entirely unexplained in both schema and description, which matters since it appears to select the local-vs-hosted code path described in the bullets.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Import a JSON audit archive ... into a target workspace') and ties the archive format to the producing sibling `export_report(scope="model", format="archive")`. An agent can distinguish this from the export/report siblings immediately.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly splits the two operating modes: locally run package with a `file` in the exports folder, versus hosted server or no `file` where nothing is imported and the caller must hand the user the `import_in_app` location. The when-to-use branch and the fallback behavior are both spelled out.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools