Skip to main content
Glama
Mipiti MCP Server
by Mipiti

Confirm Behavioural Model

confirm_behavioural_model

Confirm a reviewed behavioural model to create a new model version, estimating any owed regeneration before recording consent and queuing the work.

Instructions

Confirm a model's behavioural model as reviewed. Mutating; creates a model version. A paid action where a regeneration is owed before certification.

Confirm only the model whose ir_hash was reviewed, which is the one get_behavioural_model returns. Refused with 409: review_stale (the model is not that hash now, or its version moved since the estimate), stale (the description changed since it was extracted), needs_answers (an owner question is open) or extraction_running (a job of the model is queued or running: poll it). An edit voids a confirmation.

Where a regeneration is owed before certification, the confirmation is also consent to that regeneration and the certifications after it, so it is estimated first:

  1. Call without confirm_estimate (the default): nothing is charged or written. The answer carries an itemised estimate (the regeneration, and the number of certifications with the ceiling they are charged within) and the model_version it was given for. If estimate.status is computing, read again after poll_after_seconds; a confirmation sent meanwhile is refused 409 estimate_computing.

  2. Show the estimate to the person, or, for a program, check it against the spending allowance the workspace grants programs. Confirm only when they agree.

  3. Call again with confirm_estimate=True and the model_version the estimate named. The confirmation is written and the work queued.

When no regeneration is owed the call confirms at once, as before.

A 402 (the balance cannot cover the estimate) and a 409 come back as data, {confirmed: false, http_status, code, message}. Never retry a 402 or a 403: report it.

A program's confirmation is a judgment. Unless the workspace's delegation policy admits it, it is refused with 403 and an escalation_id and parked for a person. Do not retry: report the escalation_id and 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>",
      "ir_hash": "<ir_hash>"
    },
    "name": "confirm_behavioural_model"
  }
}

Input Schema

NameRequiredDescriptionDefault
noteNoOptional note recorded with the confirmation.
ir_hashYesThe ``ir_hash`` reviewed.
evidenceNo
model_idYesID of the threat model.
model_versionNoWith ``confirm_estimate=True``: the version the estimate named.
server_versionYes
confirm_estimateNoFalse (default) estimates where an estimate is owed; True confirms and accepts it.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.113.0
    • addedInput schema / properties / confirm_estimate
      Added value: +{
      +  "default": false,
      +  "description": "False (default) estimates where an estimate is\nowed; True confirms and accepts it.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / model_version
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "integer"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "With ``confirm_estimate=True``: the version the\nestimate named."
      +}
  2. Changed1 schema field changedv0.106.1
    • addedInput schema / properties / evidence
      Added value: +{
      +  "default": "",
      +  "type": "string"
      +}
  3. Addedv0.87.0

TDQS

A4.8/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 the operation mutating, says it creates a model version, discloses that it is a paid action with an itemised estimate and ceiling, and enumerates the refusal codes (review_stale, stale, needs_answers, extraction_running, estimate_computing). It further specifies the error-as-data shape ``{confirmed: false, http_status, code, message}`` and explicitly forbids retrying 402/403, including the 403 escalation_id path.

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?

Content is front-loaded with the one-line purpose and mutation warning before the numbered procedure, and the three-step list is the right structure for a two-call protocol. It is long, and a few lines are expendable — "When no regeneration is owed the call confirms at once, as before" largely restates the preceding procedure, and the 402/409-as-data sentence partly duplicates the error detail already given per code.

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 charged, version-creating mutation with a two-call handshake, the definition covers what an agent needs to act correctly: the ordering, the identifier that must match, the polling instruction when the estimate is computing, the refusal taxonomy, and the non-retry policy on 402/403. An output schema exists, and the description still usefully clarifies the error payload shape without over-explaining success returns.

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 71%, and the description adds real meaning beyond it for the parameters that matter most: ``confirm_estimate`` is explained as dry-run versus commit, ``model_version`` is tied to the version the estimate named, and ``ir_hash`` is tied to what ``get_behavioural_model`` returned. However, ``evidence`` and ``server_version`` carry no description in the schema and are not explained in the prose either, leaving a small gap.

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 opening states a specific verb and resource ("Confirm a model's behavioural model as reviewed") and immediately adds the consequence ("Mutating; creates a model version"). It also pins the target identity via ``ir_hash`` and names the sibling that supplies it (``get_behavioural_model``), so the agent can distinguish this from ``regenerate_behavioural_model`` or ``extract_behavioural_model`` without opening any schema.

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?

The description gives an explicit two-mode usage rule: call without ``confirm_estimate`` first to obtain a priced estimate, then call again with ``confirm_estimate=True`` and the ``model_version`` the estimate named. It also states that when no regeneration is owed the call confirms at once, spells out the exact conditions that produce each 409 code, and routes escalation to ``list_proposals`` rather than a retry.

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