Skip to main content
Glama
eng-toolkit

eng-toolkit

by Lin830326

Control Analyze

control_analyze

Analyze a SISO transfer function to compute poles, zeros, DC gain, damping, and exact stability via Routh-Hurwitz or Jury tests for continuous or discrete models.

Instructions

Analyse one SISO transfer function G = numerator/denominator (coefficient lists in descending powers, e.g. '[1, 3, 2]', or text 's^2 + 3 s + 2'). Continuous by default; domain='discrete' + sample_time for G(z). Returns order, poles, zeros, DC gain, system type, relative degree, per pole natural frequency / damping ratio / time constant, dominant pole, minimum-phase check, and stability from an EXACT Routh-Hurwitz array (continuous) or Jury table (discrete) cross-checked against the numerical roots. Warns on near pole-zero cancellation, clustered roots, huge coefficient range.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "numerator": "<numerator>",
      "denominator": "<denominator>"
    },
    "name": "control_analyze"
  }
}

Input Schema

NameRequiredDescriptionDefault
domainNo'continuous' (variable s, default) or 'discrete' (variable z; needs 'sample_time')continuous
numeratorYesNumerator polynomial: JSON list of coefficients in DESCENDING powers, e.g. '[1, 3]' for s+3, or text such as 's + 3'.
denominatorYesDenominator polynomial, same formats, e.g. '[1, 3, 2]' or 's^2 + 3 s + 2'. The leading coefficient must not be 0. Order at most 40, coefficients 1e-12..1e12 in magnitude.
sample_timeNoSample time with unit, e.g. '0.1 s'. Only with domain='discrete'; refused for a continuous model.

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

A4/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 a good job: it states that the analysis is cross-checked with an exact Routh-Hurwitz array or Jury table and lists the warning conditions. It does not spell out side effects or error behavior beyond the schema, but for a read-only analysis tool the disclosure is substantial.

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-loaded: core purpose and input formats come first, followed by outputs and warnings. It is appropriately sized for a complex analysis tool, though the long run-on output list could be structured more readably.

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?

Given the tool's complexity, 100% schema coverage, and the existence of an output schema, the description is complete enough to call correctly. It covers input formats, domain selection, the main computed outputs, and warning conditions without needing to restate the output schema.

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 all four parameters in detail. The description reinforces the coefficient-format and domain semantics, but does not add meaning beyond what the schema already provides; baseline 3 is appropriate.

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?

The description states a specific verb and resource: analyse one SISO transfer function G = numerator/denominator. It explains input formats and the continuous-versus-discrete distinction, making the tool's scope clear enough to distinguish it from sibling control tools.

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?

The description gives clear domain guidance: continuous by default, and discrete requires domain='discrete' plus sample_time. However, it does not explicitly say when to use this analysis tool instead of siblings such as control_frequency, control_response, or control_discretize, so usage is implied rather than fully directed.

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