Skip to main content
Glama
Mipiti
by Mipiti

undo_split_composition_event

Reverse a previously applied split, restoring the ancestor entity and removing duplicate copies. Refuses if the state has materially changed since the original split.

Instructions

Apply the inverse of a previous split_applied event.

Mirror of undo_lift_composition_event for splits. Re-runs the divergence detector before applying and refuses with 409 + a structured refusal block when state has materially evolved since the forward split. On success, restores the ancestor's entity, tombstones the duplicated copies on every target descendant, persists across all affected models, and emits a structured split_undone activity event citing original_event_id.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
model_idYesThe ancestor model whose split is being undone. Must match the cited event's ``threat_model_id``.
split_idYesEither the surrogate id of the ``split_applied`` activity event, or the structured ``split_id`` carried in the event payload.
server_versionYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior5/5

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

No annotations exist, so description carries full burden. It details preconditions (divergence check), failure mode (409 with structured block), postconditions (restore ancestor, tombstone duplicates, persist across models, emit event), and the full lifecycle, providing excellent transparency for an agent.

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?

Two paragraphs with front-loaded intent and code references; every sentence adds value. Slightly verbose for a tool description but remains efficient and well-structured.

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?

Given the existence of an output schema (return values not needed), the description covers all behavioral aspects: pre-checks, failure scenarios, side effects, and persistence. No gaps identified for safe agent invocation.

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?

With 67% schema description coverage, the description adds significant value beyond schema for two of three parameters: explains `model_id` must match event's `threat_model_id`, and clarifies `split_id` can be either the event surrogate id or payload split_id. `server_version` is left undocumented.

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?

Description clearly states it applies the inverse of a previous `split_applied` event, distinguishing it from the sibling `undo_lift_composition_event` by explicitly calling out the mirror relationship. The verb 'undo' with the resource 'split composition event' is specific and unambiguous.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Description implies usage for undoing splits and mentions the divergence detector refusal when state has evolved, but does not provide explicit when-to-use vs. when-not-to-use guidance or name alternatives like `preview_undo_split_composition` as a safer first step.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Mipiti/mipiti-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server