Skip to main content
Glama
eng-toolkit

eng-toolkit

by Lin830326

Control Feedback

control_feedback

Analyze feedback loops from plant, controller, and sensor polynomials to get open/closed-loop transfer functions, sensitivity, poles, stability, system type, steady-state errors, and margins.

Instructions

Feedback loop of plant G, controller C and sensor H (continuous; each as numerator/denominator coefficient lists in descending powers or polynomial text; controller and sensor default to 1). Returns open-loop L = C G H, closed-loop T = C G/(1 + C G H) and sensitivity S = 1/(1 + L) as polynomials, closed-loop poles (natural frequency, damping) and exact stability, system type, position/velocity/acceleration error constants Kp Kv Ka, steady-state errors for step, ramp and parabolic inputs (actuating and tracking error), and the peak of |S| with the margins it guarantees. The loop L must be proper.

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": {
      "plant_numerator": "<plant_numerator>",
      "plant_denominator": "<plant_denominator>"
    },
    "name": "control_feedback"
  }
}

Input Schema

NameRequiredDescriptionDefault
plant_numeratorYesPlant numerator, e.g. '[1]' or '1'
sensor_numeratorNoSensor / feedback-path numerator (default '1', unity feedback)1
plant_denominatorYesPlant denominator, e.g. '[1, 3, 2, 0]' or 's (s+1)(s+2)'
sensor_denominatorNoSensor / feedback-path denominator (default '1')1
controller_numeratorNoController numerator (default '1', i.e. a unit gain)1
controller_denominatorNoController denominator (default '1'); a PID is e.g. numerator '[Kd, Kp, Ki]' over '[1, 0]'1

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.5/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full behavioral burden. It discloses the computed quantities and adds a genuine precondition ('The loop L must be proper'), but does not state what happens when the loop is improper (error vs. silent adjustment) or any other failure behavior. Since this is a pure computation, the lack of auth/rate-limit notes is not a gap, but the failure-mode omission is.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The content is dense and front-loaded with no filler, but it is delivered as a single long run-on sentence that is hard to parse. Splitting the input-format note from the return-value list would improve scanability without losing information.

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?

An output schema exists, so return values need not be explained, yet the description enumerates them anyway (redundant but not harmful). For a six-parameter computation tool it is complete enough to call correctly, with the properness precondition and input format covered; only failure behavior is unaddressed.

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. The description adds value beyond the schema by specifying coefficient lists are in descending powers and may be polynomial text, and by noting controller/sensor default to 1. This clarifies input format and ordering that the schema only partially conveys.

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 names the specific computation: feedback loop analysis of plant G, controller C and sensor H, returning L, T, S, poles, stability, error constants and steady-state errors. It is clear what the tool does. However, it does not explicitly distinguish itself from siblings like control_analyze or control_response, so an agent must infer the boundary.

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 domain: use this when you have G, C and H and want loop/closed-loop transfer functions, stability and steady-state error metrics. The only explicit constraint is 'The loop L must be proper.' There is no when-not guidance and no named alternative for adjacent analyses.

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