Skip to main content
Glama
eng-toolkit

eng-toolkit

by Lin830326

Control Response

control_response

Computes 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

NameRequiredDescriptionDefault
domainNo'continuous' (variable s, default) or 'discrete' (variable z; needs 'sample_time')continuous
samplesNoNumber of time samples (0 = automatic, at most 100000)
state_aNoState-space A as nested JSON list (n x n), e.g. '[[0, 1], [-2, -3]]'. Use INSTEAD of numerator/denominator.
state_bNoState-space B, n x 1 as '[[0],[1]]' or a flat list '[0, 1]'
state_cNoState-space C, 1 x n as '[[1, 0]]' or a flat list '[1, 0]'
state_dNoState-space D, a single number, default '0'0
t_finalNoEnd time with unit, e.g. '5 s'. Empty = chosen from the poles.
numeratorNoTransfer-function numerator (descending coefficients, e.g. '[16]' or text '16'). Leave empty when using state space.
input_typeNo'step' (default, unit step), 'impulse' or 'ramp' (unit slope)step
denominatorNoTransfer-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_timeNoSample time with unit, e.g. '0.1 s'. Only with domain='discrete'; refused for a continuous model.
settling_toleranceNoSettling band as a fraction of the final value, default 0.02 (2 %)

Output Schema

NameRequiredDescriptionDefault
okYes
dataNoNon-quantity payload (reports, listings)
errorNo
valueNoPrimary quantity result
valuesNoAll named quantity results (includes the primary)
warningsNo
artifactsNo
provenanceYesWhat produced the result and from which inputs.
review_statusNounreviewed

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.0.1

TDQS

A3.7/5.0
Behavior4/5

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

With no annotations provided, the description carries the full behavioral burden and does well: it discloses the CSV artifact output with a sample cap, the metrics returned, exact discretisation, automatic time-range selection, and the special 'unbounded' handling for unstable systems. It does not cover invalid-input behavior or artifact retrieval, but for a computational response tool the disclosure is strong.

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 layers the input modes, outputs, and edge-case behavior in a single dense paragraph. Every sentence contributes useful information, though the block is long and could benefit from light structural separation for such a parameter-heavy tool.

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

Completeness4/5

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

Given 12 parameters, no annotations, and an existing output schema, the description is quite complete: it explains model-input alternatives, output artifact and metrics, unstable-system behavior, and time-range selection. Minor gaps remain around invalid-input handling and explicit tool-selection guidance, but nothing critical for correct invocation 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 every parameter with examples and defaults. The description largely repeats that grouping by mentioning transfer-function versus state-space fields and auto time-range selection unless t_final or samples are given, adding only modest extra context such as selection from the slowest and fastest poles. The baseline of 3 is appropriate.

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?

The description states a specific verb and resource: compute the time response of a SISO system to step, impulse, or ramp inputs. It clearly covers both transfer-function and state-space model forms, which makes the tool's domain unambiguous. It does not explicitly differentiate itself from sibling tools such as control_analyze or control_frequency, so it falls short of a 5.

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 the purpose and by the two alternative model-entry modes, but the description does not say when to prefer this tool over siblings or when not to use it. It also does not state prerequisites or restrictions on combining transfer-function and state-space inputs beyond what the schema already says. This is adequate but leaves routing guidance to inference.

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

Deploy Server

Other Tools