Skip to main content
Glama

Start the CarMaker for Simulink session

cm_session_start

Starts a CarMaker for Simulink session when missing by launching MATLAB, running cmenv, and opening the Simulink model and CarMaker GUI; returns ready status or what it is waiting for.

Instructions

Bring up a CarMaker for Simulink session as far as it is missing: start MATLAB (visible, in the project's src_cm4sl folder, engine shared), run cmenv, open the Simulink model and open the CarMaker GUI. Nothing is restarted or closed. Returns ready=true, or ready=false with what it is waiting for: call again until ready. Without a model it opens none and lists models_loaded and models_found to choose from. Many projects need their own setup script before the model compiles: if init_scripts_found lists one, pass it as init.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
initNoThe project's own MATLAB setup script, run once per MATLAB session before the model is opened (default: CM_MATLAB_INIT). A name from init_scripts_found, or a full path
modelNoSimulink model to open: a name on the MATLAB path, a path as listed in models_found, or a full path (default: CM_MODEL)
max_wait_sNoLongest time to wait in seconds; keep it below your client's tool time-out and call again if not finished

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the annotations (destructiveHint=false), the description makes explicit that 'Nothing is restarted or closed', that only missing pieces are brought up (idempotency), and what the ready=true/false return signals plus the waiting condition mean. This adds meaningful behavioral context the annotations cannot convey.

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 dense but front-loads the primary action and each sentence carries information. It is a fairly packed paragraph with some long compound sentences, but there is little outright waste.

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 multi-step session-startup tool, the description covers side effects, idempotency, model-optional behavior, init-script handling, wait/timeout guidance, and return semantics, and an output schema exists to absorb return details. 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.

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, but the description adds real meaning: it ties 'init' to workflow ('if init_scripts_found lists one, pass it as init') and explains the no-model case that drives the 'model' parameter choice. It stops short of detailing max_wait_s beyond the schema.

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 specific verb and resource ('Bring up a CarMaker for Simulink session') and enumerates the concrete steps (start MATLAB, run cmenv, open Simulink model, open CarMaker GUI). This clearly separates it from siblings like cm_start_sim (run a simulation) and cm_standalone_launch (a different server type).

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?

Gives strong operational context: bring the session up 'as far as it is missing', call again until ready, and pass a script from init_scripts_found as init when a project needs its own setup. It does not explicitly name alternative tools or state when NOT to use 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.