Skip to main content
Glama
Mipiti
by Mipiti

Generate From Behavioural Model

generate_from_behavioural_model

Generate the threat model of a model awaiting its first generation, from its behavioural model. Mutating; saves the model's next version.

Instructions

Generate the threat model of a model awaiting its first generation, from its behavioural model. Mutating; saves the model's next version.

A generation where the platform models what the system does saves the model first (generate_threat_model answers extracting or needs_answers). Once get_behavioural_model reports generation_ready: true, call this with its model_id: the inventory steps run from the stored description and the answers to its questions. It takes no description. Progress is reported automatically; it takes minutes.

Answer: as generate_threat_model's, controls_status and the proposed control build included; needs_answers with the questions when it stopped on questions.

Refusals come back as data, {generated: false, http_status: 409, code, message}: not_awaiting_generation (the model has been generated, or its behavioural model still asks questions or is being extracted: read get_behavioural_model, and refine a generated model with refine_threat_model), generation_in_progress (another generation of the model is running: do not start another; poll get_behavioural_model, whose generation_ready turns false and whose version moves when it saves). A model that is not there is a 404 error.

Input Schema

NameRequiredDescriptionDefault
model_idYesThe model, as ``generate_threat_model`` returned it.
server_versionYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.90.0

TDQS

A4.6/5.0
Behavior5/5

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

No annotations are provided, so the description carries the full behavioral burden. It discloses that the operation is mutating and saves the model's next version, that it takes minutes and reports progress automatically, and it explains refusal codes and 404 behavior in detail.

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?

The purpose and precondition are front-loaded, and the later paragraphs focus on return states and refusal handling. It is dense and useful, though longer than strictly necessary for a two-parameter tool.

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?

For a complex mutating generation tool with no annotations and an output schema, the description covers when to call it, what state it requires, side effects, timing, return states, and refusals. The only minor omission is `server_version`, which is a schema field rather than the central interaction concern.

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

Parameters3/5

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

Schema description coverage is 50%, and the description clarifies that `model_id` comes from a `get_behavioural_model` result with `generation_ready: true`. However, `server_version` is neither described in the schema nor mentioned in the description, leaving half the parameters undocumented.

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 states a specific verb and resource: generate the threat model of a model awaiting its first generation from its behavioural model. It explicitly distinguishes this first behavioural-model-based generation from `generate_threat_model`, whose `extracting`/`needs_answers` states precede it.

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?

It gives an explicit precondition: call this only once `get_behavioural_model` reports `generation_ready: true`, using its `model_id`. It also routes the agent away from this tool when the model is already generated, still asking questions, or being extracted, naming `get_behavioural_model` and `refine_threat_model` as alternatives.

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