Skip to main content
Glama

Stop the simulation

cm_stop_sim
Destructive

Stops a running IPG CarMaker simulation. Optionally waits up to a given number of seconds for the simulation to become idle.

Instructions

Stop the running simulation. With wait_s > 0 it returns what cm_wait_end returns.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
wait_sNoWait this long for the simulation to become idle (0: do not wait)

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
liveNo
noteNo
stateNo
popupsNo
testrunNo
finishedNo
waited_sNo
elapsed_sNo
logs_fileNo
distance_mNo
end_statusNo
log_errorsNo
logs_errorNo
sim_time_sNo
poll_errorsNo
result_fileNo
simulink_errorNo
stop_requestedNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, readOnlyHint=false and openWorldHint=false, so the safety profile is covered. The description adds genuinely new behavior for the wait_s > 0 case (blocking until idle and mirroring cm_wait_end's return), but does not say what is discarded or what happens when no simulation is running.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two short sentences, the primary action front-loaded and the conditional behavior second. No filler and nothing that restates the name or title.

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

Completeness3/5

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

An output schema exists, so return values need not be documented. However, for a destructive operation the description says nothing about what state is destroyed, whether results are retained, or error behavior when no simulation is active, leaving a meaningful gap.

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?

Schema coverage is 100%, so the baseline is 3, and the description adds meaning beyond the schema by explaining what the wait actually yields ('returns what cm_wait_end returns') rather than just repeating the idle-wait wording.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Stop the running simulation'), which cleanly contrasts with the sibling cm_start_sim. It stops short of explicit sibling routing, but the reference to cm_wait_end makes the boundary with that tool inferable.

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?

Usage is implied by 'Stop the running simulation' rather than stated as a condition. The note linking wait_s > 0 to cm_wait_end implies a choice between the two tools, but no when-not or prerequisites (e.g. whether a simulation must be running) are given.

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