Control Response
control_responseComputes SISO step, impulse, or ramp time responses from transfer-function or state-space models, returning a CSV table and response metrics such as rise time and overshoot.
Instructions
Time response of a SISO system to a unit step, impulse or ramp: either a transfer function (numerator, denominator as coefficient lists in descending powers or polynomial text) or a state-space model (state_a, state_b, state_c, state_d as nested JSON lists). Exact discretisation. Returns the response table as a CSV artifact (time,input,output; at most 100000 samples) and the metrics: rise time (10-90 %), peak value and time, percent overshoot, 2 % settling time (settling_tolerance), steady-state value and error. For an unstable system it reports 'unbounded' instead of failing. Time range auto-chosen from the slowest and fastest poles unless t_final / samples are given.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "control_response"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| domain | No | 'continuous' (variable s, default) or 'discrete' (variable z; needs 'sample_time') | continuous |
| samples | No | Number of time samples (0 = automatic, at most 100000) | |
| state_a | No | State-space A as nested JSON list (n x n), e.g. '[[0, 1], [-2, -3]]'. Use INSTEAD of numerator/denominator. | |
| state_b | No | State-space B, n x 1 as '[[0],[1]]' or a flat list '[0, 1]' | |
| state_c | No | State-space C, 1 x n as '[[1, 0]]' or a flat list '[1, 0]' | |
| state_d | No | State-space D, a single number, default '0' | 0 |
| t_final | No | End time with unit, e.g. '5 s'. Empty = chosen from the poles. | |
| numerator | No | Transfer-function numerator (descending coefficients, e.g. '[16]' or text '16'). Leave empty when using state space. | |
| input_type | No | 'step' (default, unit step), 'impulse' or 'ramp' (unit slope) | step |
| denominator | No | Transfer-function denominator, e.g. '[1, 4, 16]' or 's^2 + 4 s + 16'. Must be proper (order >= numerator order). Leave empty when using state space. | |
| sample_time | No | Sample time with unit, e.g. '0.1 s'. Only with domain='discrete'; refused for a continuous model. | |
| settling_tolerance | No | Settling band as a fraction of the final value, default 0.02 (2 %) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| data | No | Non-quantity payload (reports, listings) | |
| error | No | ||
| value | No | Primary quantity result | |
| values | No | All named quantity results (includes the primary) | |
| warnings | No | ||
| artifacts | No | ||
| provenance | Yes | What produced the result and from which inputs. | |
| review_status | No | unreviewed |