Skip to main content
Glama
Mipiti MCP Server
by Mipiti

Remove Behavioural Element

remove_behavioural_element

Remove a behavioural model element that the system does not actually contain to correct an extraction error. The removal is recorded and creates a new model version.

Instructions

Remove an element of a model's behavioural model that the system does not have (an extraction read something the system does not hold, or put it where it is not). Mutating; creates a model version.

The removal is recorded beside the model, and every later extraction withholds what it reads back of the element, under its id or another. Only an element nothing else names can be removed: one an action, a channel, a copy, a claim or a zone placement still names is refused 409 referenced, naming them; edit or remove those first. An element the model lacks is 404 unknown_element. The removal changes the model's ir_hash, which voids a confirmation. Writing an element under a removed id with edit_behavioural_element withdraws the removal.

A removal narrows what the analysis reads, so it is a judgment: a program's is refused with 403 and an escalation_id and parked for a person unless the workspace's delegation policy admits it. Do not retry: report the escalation_id and poll list_proposals. Remove only what the documentation or the code shows the system does not have; never to clear a question.

Returns what the removal did, as edit_behavioural_element does; removed lists every standing removal.

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_id": "<element_id>"
    },
    "name": "remove_behavioural_element"
  }
}

Input Schema

NameRequiredDescriptionDefault
evidenceNo
model_idYesID of the threat model.
collectionYesThe collection of ``get_behavioural_model``'s ``ir`` the element belongs to.
element_idYesThe element's ``id``.
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.100.0

TDQS

A4.6/5.0
Behavior5/5

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

With no annotations provided, the description carries the full burden and does so thoroughly: it declares the tool mutating, notes it creates a model version, and specifies 409 'referenced' (naming the referrers), 404 'unknown_element', and 403 with an escalation_id for judgment calls. It further discloses that the removal alters ir_hash and voids a confirmation, and that removal effects propagate to later extractions.

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?

Well front-loaded — the operation and its condition come first, followed by error behavior and escalation handling. It is dense rather than padded, though the escalation instructions ('Do not retry... poll list_proposals') and the closing sentence about return values add length that could be compressed.

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 mutating tool with side effects and gated authorization, the definition covers consequences (version creation, ir_hash change, confirmation voiding), failure modes with codes, and the required human-escalation workflow. Since an output schema exists, its brief note about 'removed' is sufficient rather than a gap.

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 adds only indirect meaning: it clarifies that an element is identified by its id (matching element_id) and that collection selects which part of get_behavioural_model's ir the element lives in. The optional 'evidence' and required 'server_version' parameters are not explained in the text, so roughly a third of the parameters remain thin.

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 precise verb ('Remove') and resource ('an element of a model's behavioural model'), and qualifies the applicable case in parentheses (an extraction read something the system does not hold, or misplaced it). It also contrasts with edit_behavioural_element, which withdraws a removal by writing under a removed id, so an agent can distinguish the two without opening schemas.

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?

Gives an explicit rule for when to use it ('Remove only what the documentation or the code shows the system does not have') and an explicit exclusion ('never to clear a question'). It also names prerequisites — referencing actions, channels, copies, claims, or zone placements must be edited or removed first — and points to list_proposals for escalation polling.

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