Skip to main content
Glama

sim_extend

Destructive

Apply structural edits to a stored model and store the result as a NEW model you own, with lineage back to the original — the same vocabulary the guided builder uses behind its interview, now callable directly. Operations (JSON array, each with "op"): add_place {id, initial}, add_transition {id, guard, event}, add_arc {from, to, weight, kinetic, type}, remove_place, remove_transition, remove_arc {from, to}, set_rate {id, rate}, set_initial {id, initial}, set_capacity {id, capacity}. The edited model is validated before it is stored; a set of operations that leaves the net malformed is refused with every reason, and nothing is written. Returns the new id, the operations applied, and the structural diff.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesmodel id to edit
nameNooptional name for the edited model
operationsYesJSON array of operations

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

The description discloses validation before storage, refusal with reasons and nothing written on malformed nets, and the exact return payload (new id, applied ops, diff). This goes well beyond the annotations (which only hint at destructive potential) and adds no contradiction.

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 description is front-loaded with the core purpose and then systematically lists operations, validation behavior, and return values. It is somewhat long due to the operation catalog, but every section earns its place and is logically ordered.

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 complex tool with a variable operations array and no output schema, the description covers invocation, exact operation shapes, validation, failure atomicity, and return values. An agent has everything needed to call it correctly without further reference.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The description enumerates each operation type and its required fields (add_place, add_transition, etc.), giving the operations parameter rich semantics far beyond the schema's generic 'JSON array of operations'. This significantly helps an agent construct valid input.

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 description clearly states it applies structural edits to a stored model and stores the result as a new owned model with lineage, which is a specific verb+resource+outcome. It enumerates the full operation vocabulary, distinguishing it from creation, comparison, and deletion tools in the sibling list.

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?

It provides strong context: edit a stored model, receive a new model, use the same operations as the guided builder. However, it does not explicitly name when not to use it or how it differs from siblings like sim_create_model or sim_supersede_model, so it falls short of full 5.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources