Skip to main content
Glama
Mipiti MCP Server
by Mipiti

Regenerate Behavioural Model

regenerate_behavioural_model

Compare a threat model's behavioural model against its description with an independent reading, then estimate or queue the paid regeneration after confirmation.

Instructions

Check a model's behavioural model against its description with an independent reading. Mutating only with confirm_estimate=True; a paid action then.

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 answer_behavioural_questions). It is paid for by whoever requests it (or by Mipiti, where it says so): the estimate is RELAYED TO THE PERSON before it is confirmed. Never confirm on your own.

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 get_behavioural_model reports regeneration_owed with several amendments or much changed text. Small wording fixes wait.

  1. Call with confirm_estimate=False (the default): nothing is charged or written. The answer carries the estimate (credits), who it is billed to, the model_version it is for and the last regeneration (last). Show it to the person.

  2. Once they agree, call with confirm_estimate=True and that model_version. It is queued: follow it with get_behavioural_model(view="status") until extraction.job is null.

Refusals come back as data, {confirmed: false, http_status, code, message}: 409 review_stale (the model changed: estimate again), 409 extraction_running (poll it), 409 no_behavioural_model, 402 (the balance cannot cover it). A 404: the caller may not start paid actions here. A program's regeneration over its spending allowance is refused 403 with an escalation_id: do not retry, poll list_proposals.

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>",
      "model_id": "<model_id>"
    },
    "name": "regenerate_behavioural_model"
  }
}

Input Schema

NameRequiredDescriptionDefault
model_idYesID of the threat model.
model_versionNoWith ``confirm_estimate=True``: the estimate's value.
server_versionYes
confirm_estimateNoFalse (default) estimates; True queues it.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.113.0

TDQS

A4.5/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and does so: it discloses that the tool mutates only with confirm_estimate=True, that it is paid and billed to the requester or Mipiti, that the estimate is relayed to the person before confirmation, that it writes nothing to the model, that confirmation queues a job requiring polling, and it enumerates refusal codes (409 review_stale, 409 extraction_running, 409 no_behavioural_model, 402, 404, 403 with escalation_id).

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 description is long but well organized: core behavior first, then usage timing, then a two-step procedure, then refusal handling. Prose is dense but nearly every sentence adds operational detail; a few phrasings (the opening clause) could be tightened without losing content.

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 paid, mutating, asynchronous operation this is thorough. Even though an output schema exists, the description still explains the refusal payload shape and the status-polling requirement, leaving no significant gap for an agent to call it correctly.

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?

Schema coverage is 75%, so the schema already documents the parameters, but the description adds workflow meaning: confirm_estimate=False is the default estimate-only call, True requires the model_version from the estimate and queues the job. The numbered steps clarify the relationship between the two parameters beyond the schema's field-level text.

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

Purpose4/5

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

The description states a concrete operation: an independent reading of the description and every settled answer, compared against the model part by part. The opening phrase 'check a model's behavioural model against its description' is slightly circular, but the following sentences make the regenerate-and-compare action unambiguous and distinguish it from the read-only get_behavioural_model path.

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?

Explicit when-to-use guidance is given: after a substantial amendment (new capability, changed flow, a paragraph of new text), once for amendments together, and before generating controls or certifying when regeneration_owed is reported. It also states when not to act ('Small wording fixes wait') and routes question-answering to answer_behavioural_questions.

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