Skip to main content
Glama
Mipiti
by Mipiti

export_report

Export a threat model or tag cohort as a downloadable document in CSV, PDF, HTML, or archive format. Read-only operation with no side effects on the source.

Instructions

Export a threat model or a tag cohort 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 — rendered document returned base64-encoded in content_b64 (with content_type). Runs as a server-side job; progress is reported automatically while it completes, which may take time for large models.

    • archive — the self-contained, independently-verifiable JSON audit bundle: every version, controls, assertions (with Tier 1 / Tier 2 verdicts and attested flags), findings, risk acceptances, assumption overrides, attestations, and instance sufficiency signatures. Returned as {..., "envelope": <dict>}; feed the envelope to import_threat_model_archive to restore it into any workspace. Model scope only.

  • scope="tag" (scope_id = tag id) supports only format="html": the signed auditor report, aggregating every member model's report plus the cross-model dependency graph and attestation status into one HTML document, returned inline in content. csv, pdf, and archive are rejected for tag scope.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
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

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior5/5

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

With no annotations provided, the description carries the full burden—and it delivers. It explicitly discloses "Read-only; no side effects on the source," return-location differences (content vs. content_b64 vs. envelope), server-side async job behavior with automatic progress reporting, latency caveats for large models, and the signed/verifiable nature of the archive bundle. This is rich behavioral context far beyond what any structured field provides.

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

Conciseness5/5

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

The description is long but every sentence earns its place. It front-loads purpose and safety in the first two sentences, then uses a clean bulleted structure under each scope to organize format behaviors. Details like the archive's full inventory of contents are dense but necessary for correct invocation, and nothing is redundant with the schema.

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?

This is a genuinely complex tool—two scopes, four formats, conditional compatibility, async vs. inline returns—and the description covers every combination's behavior, constraints, return representation, and even the downstream restore workflow. The presence of an output schema means return-value details need not be enumerated, and the description appropriately focuses on the decision logic and side-effect profile.

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

Parameters5/5

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

The description substantially enriches the schema: it explains how scope determines the interpretation of scope_id, maps each format enum value to its exact output representation and sync/async behavior, details the full contents of the archive envelope, and documents constraint interactions between scope and format. The only parameter not addressed is server_version, but 75% schema coverage plus this deep descriptive compensation makes the semantic space well-covered.

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?

The description opens with a specific verb+resource: "Export a threat model or a tag cohort as a downloadable document." It then enumerates the exact scope/format variants, making the tool's function unambiguous and clearly distinct from siblings like import_threat_model_archive (inverse operation) and the report-type getters (get_verification_report, get_compliance_report).

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?

The description provides an explicit scope/format compatibility matrix, including direct exclusions: "csv, pdf, and archive are rejected for tag scope" and "archive — Model scope only." It also names the companion tool for restore (import_threat_model_archive). However, it does not explicitly contrast against similar report/document sibling tools (e.g., get_verification_report), so it stops short of full when-not-to-use-this-instead-of-X guidance.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Mipiti/mipiti-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server