Skip to main content
Glama
Mipiti
by Mipiti

Edit Behavioural Element

edit_behavioural_element

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

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 the behavioural model as it now stands, with changed.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
elementYesJSON object, the whole element including its ``id``; it replaces the element of that id, or adds one.
model_idYesID of the threat model.
collectionYesThe collection of ``get_behavioural_model``'s ``ir`` the element belongs to.
server_versionYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.87.0

TDQS

A4.4/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 richly: mutation semantics, model-version creation, ir_hash change and its effect on confirmations, 422 for invalid results, 409 when a build holds the model, 403 with escalation_id parking the edit for a person, and the no-retry instruction. This is exactly the behavioral disclosure an agent needs.

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?

Front-loads the action ('Replace, or add, one element') then layers error and delegation behavior. Dense but every sentence conveys a distinct behavioral fact; only the density keeps it from a 5.

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?

Covers mutation consequences, validity and build-locking error paths, authorization/escalation flow, follow-up confirmation, and the return shape. An output schema exists, so the brief note on the return is a bonus rather than a gap. Nothing an agent needs to invoke this correctly is missing.

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 75%, so the schema documents most parameters. The description confirms the element is stored as written and must yield a valid model, but adds little about model_id, collection, or server_version beyond what the schema states. Baseline 3 is appropriate.

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?

States a specific verb and scope: 'Replace, or add, one element of a model's behavioural model.' That single-element surgical edit is clearly distinguished from whole-model operations among siblings like extract_behavioural_model and confirm_behavioural_model, which it names.

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?

Provides strong operational context: the required follow-up of 'confirm_behavioural_model' after the ir_hash change, and explicit handling for the 403 case ('Do not retry... report the escalation_id and poll list_proposals'). It does not explicitly state when to prefer this over other edit/add siblings such as add_asset, so it stops short of a 5.

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