Skip to main content
Glama

Start the simulation

cm_start_sim

Starts the loaded CarMaker test run and returns once it is running. If Simulink model compilation fails, it reports the error immediately; then call cm_wait_end to wait for completion.

Instructions

Start the loaded test run. Returns once it is running; fails at once, with Simulink's error, if the model does not compile. Then call cm_wait_end until it reports finished.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
saveNosave: write a result file (GUI storage mode becomes 'Save all', cm_revert_all puts it back). collect: buffer only. keep: leave the GUI setting alonesave
save_logsNoAlso save what Simulink logged in this run to a MAT file next to the result file, as cm_model_logs_save does; cm_wait_end returns it as logs_file
start_timeout_sNoHow long the start may take (a Simulink model may compile first)

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
noteNo
stateNo
popupsNo
after_sNo
startedNo
save_modeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/5.0
Behavior4/5

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

Annotations cover only the safety profile (readOnlyHint=false, destructiveHint=false, openWorldHint=false), and the description adds genuinely useful behavior: it is synchronous, returns as soon as the run is up, and fails fast with Simulink's own error text if compilation fails. It stops short of disclosing the file-writing side effect of the default save mode, which matters for a non-read-only tool.

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?

Three short sentences, zero padding, with the primary action, its failure mode, and the next step ordered by importance. Nothing could be cut without losing information.

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?

With an output schema present and full parameter documentation, the description only needs to explain the call's lifecycle, and it does: start, fail-fast on compile error, then poll with cm_wait_end. Nothing an agent needs to invoke it 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 100%, so the schema already documents save/collect/keep, save_logs, and start_timeout_s in detail. The description adds no parameter-level meaning beyond that, so the baseline of 3 applies.

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?

Specific verb + resource ('Start the loaded test run') with the scope qualifier 'loaded' that separates it from cm_load_testrun. An agent can distinguish it from cm_stop_sim and cm_wait_end purely from this sentence.

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?

Explicitly sequences the workflow by naming cm_wait_end as the required follow-up call until it reports finished, which is real routing guidance. It does not state the prerequisite explicitly (that a test run must already be loaded) or when NOT to call it, so it falls 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.