Skip to main content
Glama
Mipiti MCP Server
by Mipiti

Edit Behavioural Element

edit_behavioural_element

Replace or add a single behavioural model element, creating a new model version and requiring reconfirmation when the edit changes state.

Instructions

Replace, or add, one element of a model's behavioural model. Mutating; creates a model version (none when the edit changes nothing).

The element is kept as a person wrote it, so a later extraction keeps it. It changes the model's ir_hash, which voids a confirmation: confirm again with confirm_behavioural_model. The result must still be a valid model (422 otherwise), and a build holding the model refuses it (409).

A program's edit 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.

Returns what the edit did, not the whole model: changed, the model's status, version and ir_hash, the element as it now stands, the open questions about it and how many are open in all. Read get_behavioural_model for the rest.

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>",
      "collection": "<collection>",
      "element": "<element>"
    },
    "name": "edit_behavioural_element"
  }
}

Input Schema

NameRequiredDescriptionDefault
elementYesJSON object, the whole element including its ``id``; it replaces the element of that id, or adds one.
evidenceNo
model_idYesID of the threat model.
collectionYesThe collection of ``get_behavioural_model``'s ``ir`` the element belongs to.
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 / evidence
      Added value: +{
      +  "default": "",
      +  "type": "string"
      +}
  2. Addedv0.87.0

TDQS

A4.5/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, discloses that a model version is created (none if nothing changed), that ir_hash changes void a prior confirmation, and enumerates concrete failure modes — 422 for an invalid model, 409 when a build holds the model, 403 with escalation_id for program edits. The explicit "do not retry" instruction is exactly the kind of operational guidance annotations never 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?

The mutating/version statement is front-loaded, then consequences, then failure modes, then the return shape — a logical order with no filler sentences. It is somewhat dense and backtick-heavy across three paragraphs, but each sentence carries distinct information, so length is justified rather than padded.

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

Completeness4/5

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

For a mutation tool with no annotations and a five-parameter schema, it covers side effects, confirmation invalidation, concurrency-style conflicts, delegation/authorization behavior, and the retry policy. It even summarizes the partial return payload while an output schema exists. The remaining gap is the unexplained evidence and server_version parameters, plus no note on what happens to links or questions attached to a replaced element.

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 coverage is 60%, and the description largely restates what the schema already says about element (JSON object with id, replaces or adds) and points at get_behavioural_model for collection. Two parameters, evidence and server_version, are documented in neither place, and evidence — an unexplained default-empty string — is the kind of field an agent would most likely mis-set. The description adds meaning but does not close the coverage 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?

"Replace, or add, one element of a model's behavioural model" gives a specific verb (replace/add), a specific resource (one element) and a scope (within a model's behavioural model). It is distinguishable from siblings such as remove_behavioural_element or release_behavioural_element 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?

It explicitly routes the agent: re-confirm via confirm_behavioural_model after the ir_hash changes, read get_behavioural_model for the full model, and on a 403 escalation do not retry — report the escalation_id and poll list_proposals. Preconditions (valid model required, build-held model refused) are also stated, so when-to-use and when-not-to-use are both covered.

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