Skip to main content
Glama
Mipiti MCP Server
by Mipiti

Export Report

export_report

Exports a threat model or tag as a downloadable CSV, PDF, HTML, or audit archive, returning a download link or job status for large reports.

Instructions

Export a threat model or a tag as a downloadable document. Read-only; no side effects on the source.

scope selects what is exported and how scope_id is read; format selects the representation:

  • scope="model" (scope_id = model id) supports format ∈ {csv, pdf, html, archive}:

    • csv — the model's current state rendered as CSV; returned inline as UTF-8 text in content.

    • pdf / html — the rendered report, produced by a server-side job.

    • archive — the self-contained, independently-verifiable JSON audit bundle of the model's current state (controls, live assertions and their runs, findings, decisions in force, attestations, sufficiency signatures; not earlier versions, activity or chat). Model scope only.

  • scope="tag" (scope_id = tag id) supports only format="html": the signed auditor report of every member model, inline in content.

A model's pdf, html or archive is never returned inline: it can be megabytes. The tool starts the export and waits briefly. Done, it answers filename, content_type, size, sha256, expires_at (an hour after it started) and download_url, a web app page where a signed-in person with access downloads it: give the person that link. Still running, job_id and status: poll get_export_status(job_id). To move a model to another workspace, the person downloads the archive and imports it in the app, signed in there.

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>",
      "scope": "<scope>",
      "scope_id": "<scope_id>"
    },
    "name": "export_report"
  }
}

Input Schema

NameRequiredDescriptionDefault
saveNoonce done, save a model's pdf, html or archive in the exports folder (``~/.mipiti/model_exports``, or ``MIPITI_EXPORT_DIR``), filed by workspace and model and named by title, time and digest; the answer's ``saved_to`` gives the path. The locally run package only: the hosted server refuses it.
scopeYesexport boundary — "model" or "tag".
formatNo"csv" (default), "pdf", "html", or "archive". Tag scope requires "html"; "archive" is model-only.csv
scope_idYesid of the model or tag selected by ``scope``.
server_versionYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.108.0
    • addedInput schema / properties / save
      Added value: +{
      +  "default": false,
      +  "description": "once done, save a model's pdf, html or archive in the exports folder (``~/.mipiti/model_exports``, or ``MIPITI_EXPORT_DIR``), filed by workspace and model and named by title, time and digest; the answer's ``saved_to`` gives the path. The locally run package only: the hosted server refuses it.",
      +  "type": "boolean"
      +}
  2. Addedv0.68.2

TDQS

A4.6/5.0
Behavior5/5

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

With no annotations supplied, the description carries the full burden and does so: it declares read-only/no-side-effects, warns that model pdf/html/archive can be megabytes and is never inlined, discloses the brief wait plus job fallback, states expires_at (one hour) and that download_url requires a signed-in person with access, and flags that save is refused by the hosted server. These are exactly the operational traits annotations would otherwise provide.

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

Conciseness4/5

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

Front-loaded summary sentence followed by well-structured bullets, with zero filler connective prose. It is long, and the parenthetical inventory of archive contents is dense, but each clause conveys a constraint or behavior an agent would otherwise have to guess.

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

Completeness5/5

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

Covers the full decision surface for a five-parameter tool with branching semantics: scope/format validity, inline versus job response paths, polling, expiry, and the saved-file side effect. Return-shape explanation slightly overlaps the existing output schema but adds the human-handoff instruction that the schema cannot express.

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

Parameters4/5

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

Beyond the 80%-covered schema it adds the cross-parameter constraint matrix (tag scope only allows html, archive is model-only, scope determines how scope_id is read) and details save's destination, naming scheme and local-only restriction. It says nothing about the required server_version parameter, which is undocumented in both schema and description.

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 ("Export a threat model or a tag as a downloadable document") and immediately distinguishes the two export boundaries via scope, so an agent knows exactly what is produced and for which entity.

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

Usage Guidelines4/5

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

Gives clear procedural guidance: which format is valid for which scope, when the call returns inline content versus a job handle, and to poll get_export_status(job_id) when still running. It also tells the agent what to do with the result ("give the person that link"). It lacks explicit when-to-use/when-not guidance against sibling reporting tools such as get_verification_report or get_compliance_report.

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