Skip to main content
Glama

Autotune weights

start_autotune_job

Queue an Optuna search for Q, R, Rd, and Qf. Then poll get_autotune_job.

The tuner needs discrete or continuous linear matrices A and B, one of double_integrator, thermal_rc_zone, soil_moisture_cascade, cart_pendulum, unicycle_kinematics, gravity_tank, icr_skid_steer, and ackermann, or a kind expression plant with one allowlisted scalar expression per state row. Expressions outside that allowlist are rejected. Optional h rows and fixed obstacle slots, path-frame residuals, and zone bands are accepted.

Call this when the weights are unknown and you can afford a closed-loop study with plant mismatch. Optuna tunes Q, R, Rd, and Qf on the single scenario in the request and reports overshoot and settling time. There is no scenario bank and no never-worse check: the result is the best trial of that study, not a comparison with weights you already have. It is an alternative to manual PID or hand-tuned MPC. The reply is a job_id. When payment enforcement is on it also includes a job_token for get_autotune_job. It does not contain the weights. Poll until status is complete or failed. The finished result's Q, R, Rd, and Qf are the physical weights. normalized_Q and its siblings are the unitless search box.

Payment settles when the job is accepted onto the queue, not when the study finishes. This is POST /v1/autotune at $1.50. Send header X-API-Key when a $29 pack still has an autotune credit. With no key, or when those credits are gone, the call is HTTP 402 and an agent pays with x402. A full queue is HTTP 429 and is not charged. The template study uses sampler seed 7. The study itself stops at timeout_seconds. A process restart marks leftover running rows failed with interrupted_by_restart instead of deleting a paid job.

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": {
      "request": "<request>"
    },
    "name": "start_autotune_job"
  }
}

Input Schema

NameRequiredDescriptionDefault
requestYesPaid Optuna study at $1.50. Send X-API-Key while the pack has an autotune credit, or pay HTTP 402 with x402 on Base USDC. Validate the plant free first, then solve, then this job when Q, R, Rd, and Qf are unknown. Each call starts a new job. Poll get_autotune_job with the returned job_id.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • addedInput schema / properties / request / properties / constraints
      Added value: +{
      +  "anyOf": [
      +    {
      +      "additionalProperties": false,
      +      "description": "Allowlisted rows ``h(x, u, p) <= 0`` and fixed obstacle slots.\n\nSoft rows use one slack per node. ``hard`` true removes those slacks.\nA linear plant with any row here uses the nonlinear solver. The linear-only solver option is rejected.",
      +      "properties": {
      +        "h": {
      +          "description": "Scalar rows, each h(x, u, p) <= 0. At most 8. Symbols are x[i], u[i], p[i], and pi. Same length, depth, and node caps as expression dynamics.",
      +          "items": {
      +            "type": "string"
      +          },
      +          "maxItems": 8,
      +          "type": "array"
      +        },
      +        "hard": {
      +          "default": false,
      +          "description": "True enforces the rows with no slack. Default false.",
      +          "type": "boolean"
      +        },
      +        "obstacles": {
      +          "anyOf": [
      +            {
      +              "additionalProperties": false,
      +              "description": "At most eight circles. Their four numbers each sit outside ``np <= 8``.",
      +              "properties": {
      +                "position": {
      +                  "description": "Two distinct state indexes for the circle plane. Example: [0, 1].",
      +                  "items": {
      +                    "type": "integer"
      +                  },
      +                  "maxItems": 2,
      +                  "minItems": 2,
      +                  "type": "array"
      +                },
      +                "slots": {
      +                  "description": "Circle slots. Length 1 to 8. Each is cx, cy, r, active.",
      +                  "items": {
      +                    "additionalProperties": false,
      +                    "description": "One fixed circle. ``active`` is 0 or 1 and is not part of caller ``p``.",
      +                    "properties": {
      +                      "active": {
      +                        "description": "1 keeps the circle. 0 drops the row. No other value is accepted.",
      +                        "maximum": 1000000000000,
      +                        "minimum": -1000000000000,
      +                        "type": "number"
      +                      },
      +                      "cx": {
      +                        "description": "Center along the first position index, in the plant's state units.",
      +                        "maximum": 1000000000000,
      +                        "minimum": -1000000000000,
      +                        "type": "number"
      +                      },
      +                      "cy": {
      +                        "description": "Center along the second position index, in the plant's state units.",
      +                        "maximum": 1000000000000,
      +                        "minimum": -1000000000000,
      +                        "type": "number"
      +                      },
      +                      "r": {
      +                        "description": "Radius. Must be >= 0.",
      +                        "maximum": 1000000000000,
      +                        "minimum": 0,
      +                        "type": "number"
      +                      }
      +                    },
      +                    "required": [
      +                      "cx",
      +                      "cy",
      +                      "r",
      +                      "active"
      +                    ],
      +                    "type": "object"
      +                  },
      +                  "maxItems": 8,
      +                  "minItems": 1,
      +                  "type": "array"
      +                }
      +              },
      +              "required": [
      +                "position",
      +                "slots"
      +              ],
      +              "type": "object"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "default": null,
      +          "description": "Fixed circles. Omit for none. The row is active * (r^2 - squared distance) <= 0."
      +        },
      +        "p": {
      +          "description": "Caller parameters for h, length 0 to 8. On an expression plant, omit this to use the plant p. Obstacle slots do not use this vector and do not count toward the cap.",
      +          "items": {
      +            "maximum": 1000000000000,
      +            "minimum": -1000000000000,
      +            "type": "number"
      +          },
      +          "maxItems": 8,
      +          "type": "array"
      +        },
      +        "slack_l1": {
      +          "anyOf": [
      +            {
      +              "maximum": 1000000000000,
      +              "minimum": 0,
      +              "type": "number"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "default": null,
      +          "description": "L1 weight on each inequality slack. Omit for 1000. Ignored when hard is true."
      +        },
      +        "slack_l2": {
      +          "anyOf": [
      +            {
      +              "maximum": 1000000000000,
      +              "minimum": 0,
      +              "type": "number"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "default": null,
      +          "description": "L2 weight on each inequality slack. Omit for 100. Ignored when hard is true."
      +        }
      +      },
      +      "type": "object"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Same h rows and obstacle slots as solve. Omit for an unconstrained study."
      +}
    • addedInput schema / properties / request / properties / costs
      Added value: +{
      +  "anyOf": [
      +    {
      +      "additionalProperties": false,
      +      "description": "Path-frame and zone residuals. Economic prices stay the linear stage vectors.\n\n``linear_state_cost`` and ``linear_input_cost`` are the economic term. They are\nlinear in the node. Path samples, zone centers, half-widths, and weights are\nparameters of the compiled problem.",
      +      "properties": {
      +        "path": {
      +          "anyOf": [
      +            {
      +              "items": {
      +                "items": {
      +                  "maximum": 1000000000000,
      +                  "minimum": -1000000000000,
      +                  "type": "number"
      +                },
      +                "type": "array"
      +              },
      +              "type": "array"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "default": null,
      +          "description": "One path sample per state node, length N+1. Each sample is along, across, and heading, in the position indexes' units and the heading state's units."
      +        },
      +        "path_frame": {
      +          "anyOf": [
      +            {
      +              "additionalProperties": false,
      +              "description": "Squared path residuals. Heading uses both sin and 1 - cos.",
      +              "properties": {
      +                "heading": {
      +                  "description": "State index of the heading. Must differ from both position indexes.",
      +                  "type": "integer"
      +                },
      +                "heading_weight": {
      +                  "default": 1,
      +                  "description": "Weight on both squared heading residuals, sin(heading error) and 1 - cos(heading error). Must be >= 0. Default 1. The two residuals share this weight.",
      +                  "maximum": 1000000000000,
      +                  "minimum": 0,
      +                  "type": "number"
      +                },
      +                "lateral_weight": {
      +                  "default": 1,
      +                  "description": "Weight on the squared cross-track residual. Must be >= 0. Default 1.",
      +                  "maximum": 1000000000000,
      +                  "minimum": 0,
      +                  "type": "number"
      +                },
      +                "longitudinal_weight": {
      +                  "default": 1,
      +                  "description": "Weight on the squared along-track residual. Must be >= 0. Default 1.",
      +                  "maximum": 1000000000000,
      +                  "minimum": 0,
      +                  "type": "number"
      +                },
      +                "position": {
      +                  "description": "Two distinct state indexes of the plane the path is written in. Example: [0, 1].",
      +                  "items": {
      +                    "type": "integer"
      +                  },
      +                  "maxItems": 2,
      +                  "minItems": 2,
      +                  "type": "array"
      +                }
      +              },
      +              "required": [
      +                "position",
      +                "heading"
      +              ],
      +              "type": "object"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "default": null,
      +          "description": "Along-track, cross-track, and heading residuals. Omit for none."
      +        },
      +        "zones": {
      +          "description": "Slack bands, at most 8. Each band is two inequalities and one slack.",
      +          "items": {
      +            "additionalProperties": false,
      +            "description": "One slack band. Inside the band the residual is zero.",
      +            "properties": {
      +              "center": {
      +                "description": "Band center, in that state's units.",
      +                "maximum": 1000000000000,
      +                "minimum": -1000000000000,
      +                "type": "number"
      +              },
      +              "half_width": {
      +                "description": "Half width of the band. Must be >= 0.",
      +                "maximum": 1000000000000,
      +                "minimum": 0,
      +                "type": "number"
      +              },
      +              "state": {
      +                "description": "State index this band applies to.",
      +                "minimum": 0,
      +                "type": "integer"
      +              },
      +              "weight": {
      +                "description": "Quadratic weight on the band slack. Zero leaves the band unpaid. Must be >= 0.",
      +                "maximum": 1000000000000,
      +                "minimum": 0,
      +                "type": "number"
      +              }
      +            },
      +            "required": [
      +              "state",
      +              "center",
      +              "half_width",
      +              "weight"
      +            ],
      +            "type": "object"
      +          },
      +          "maxItems": 8,
      +          "type": "array"
      +        }
      +      },
      +      "type": "object"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Same path-frame and zone residuals as solve. Omit to tune the quadratic cost only."
      +}
    • addedInput schema / properties / request / properties / curriculum
      Added value: +{
      +  "anyOf": [
      +    {
      +      "additionalProperties": false,
      +      "description": "Declarative stages. JSON only: there is no code to run.",
      +      "properties": {
      +        "held_out": {
      +          "description": "Required scenarios scored after the last stage. They are not used to train or to apply the cap.",
      +          "items": {
      +            "additionalProperties": false,
      +            "description": "Step-reference rollout used by the auto-tuner.",
      +            "properties": {
      +              "disturbance_onset_step": {
      +                "default": 0,
      +                "description": "Closed-loop step index when step_disturbance turns on. Default 0, must be >= 0.",
      +                "minimum": 0,
      +                "type": "integer"
      +              },
      +              "n_steps": {
      +                "default": 40,
      +                "description": "Closed-loop steps in the scored rollout. Default 40, must be >= 1 and <= 200.",
      +                "maximum": 200,
      +                "minimum": 1,
      +                "type": "integer"
      +              },
      +              "plant_model_mismatch_pct": {
      +                "default": 0,
      +                "description": "Plant-model mismatch in percent. The plant is scaled by 1 + pct/100. Default 0.",
      +                "type": "number"
      +              },
      +              "seed": {
      +                "default": 0,
      +                "description": "Seed for the sensor noise. Default 0.",
      +                "type": "integer"
      +              },
      +              "sensor_noise_std": {
      +                "default": 0,
      +                "description": "Sensor noise standard deviation, in the plant's state units. Default 0, must be >= 0.",
      +                "minimum": 0,
      +                "type": "number"
      +              },
      +              "step_disturbance": {
      +                "anyOf": [
      +                  {
      +                    "items": {
      +                      "type": "number"
      +                    },
      +                    "type": "array"
      +                  },
      +                  {
      +                    "type": "null"
      +                  }
      +                ],
      +                "default": null,
      +                "description": "Constant disturbance applied from disturbance_onset_step, length nd. Omit for none."
      +              },
      +              "step_reference": {
      +                "description": "Step state reference held for the rollout, length nx.",
      +                "items": {
      +                  "type": "number"
      +                },
      +                "type": "array"
      +              },
      +              "x0": {
      +                "description": "Initial state for the rollout, length nx, in the plant's state units.",
      +                "items": {
      +                  "type": "number"
      +                },
      +                "type": "array"
      +              }
      +            },
      +            "required": [
      +              "x0",
      +              "step_reference"
      +            ],
      +            "type": "object"
      +          },
      +          "maxItems": 12,
      +          "minItems": 1,
      +          "type": "array"
      +        },
      +        "stages": {
      +          "description": "Ordered stages. Length 1 to 4. Each stage warm-starts from the previous stage's best feasible trial.",
      +          "items": {
      +            "additionalProperties": false,
      +            "description": "One fixed bank. The numbers are the only plant the stage trains on.",
      +            "properties": {
      +              "scenarios": {
      +                "description": "Training scenarios for this stage. Length 1 to 12. The stage does not add scenarios of its own.",
      +                "items": {
      +                  "additionalProperties": false,
      +                  "description": "Step-reference rollout used by the auto-tuner.",
      +                  "properties": {
      +                    "disturbance_onset_step": {
      +                      "default": 0,
      +                      "description": "Closed-loop step index when step_disturbance turns on. Default 0, must be >= 0.",
      +                      "minimum": 0,
      +                      "type": "integer"
      +                    },
      +                    "n_steps": {
      +                      "default": 40,
      +                      "description": "Closed-loop steps in the scored rollout. Default 40, must be >= 1 and <= 200.",
      +                      "maximum": 200,
      +                      "minimum": 1,
      +                      "type": "integer"
      +                    },
      +                    "plant_model_mismatch_pct": {
      +                      "default": 0,
      +                      "description": "Plant-model mismatch in percent. The plant is scaled by 1 + pct/100. Default 0.",
      +                      "type": "number"
      +                    },
      +                    "seed": {
      +                      "default": 0,
      +                      "description": "Seed for the sensor noise. Default 0.",
      +                      "type": "integer"
      +                    },
      +                    "sensor_noise_std": {
      +                      "default": 0,
      +                      "description": "Sensor noise standard deviation, in the plant's state units. Default 0, must be >= 0.",
      +                      "minimum": 0,
      +                      "type": "number"
      +                    },
      +                    "step_disturbance": {
      +                      "anyOf": [
      +                        {
      +                          "items": {
      +                            "type": "number"
      +                          },
      +                          "type": "array"
      +                        },
      +                        {
      +                          "type": "null"
      +                        }
      +                      ],
      +                      "default": null,
      +                      "description": "Constant disturbance applied from disturbance_onset_step, length nd. Omit for none."
      +                    },
      +                    "step_reference": {
      +                      "description": "Step state reference held for the rollout, length nx.",
      +                      "items": {
      +                        "type": "number"
      +                      },
      +                      "type": "array"
      +                    },
      +                    "x0": {
      +                      "description": "Initial state for the rollout, length nx, in the plant's state units.",
      +                      "items": {
      +                        "type": "number"
      +                      },
      +                      "type": "array"
      +                    }
      +                  },
      +                  "required": [
      +                    "x0",
      +                    "step_reference"
      +                  ],
      +                  "type": "object"
      +                },
      +                "maxItems": 12,
      +                "minItems": 1,
      +                "type": "array"
      +              },
      +              "trials": {
      +                "description": "Optuna trials for this stage. Must be >= 1 and <= 40.",
      +                "maximum": 40,
      +                "minimum": 1,
      +                "type": "integer"
      +              },
      +              "validation": {
      +                "description": "Cap scenarios for this stage. Length 1 to 12. Used by the regression cap, not as the held-out block.",
      +                "items": {
      +                  "additionalProperties": false,
      +                  "description": "Step-reference rollout used by the auto-tuner.",
      +                  "properties": {
      +                    "disturbance_onset_step": {
      +                      "default": 0,
      +                      "description": "Closed-loop step index when step_disturbance turns on. Default 0, must be >= 0.",
      +                      "minimum": 0,
      +                      "type": "integer"
      +                    },
      +                    "n_steps": {
      +                      "default": 40,
      +                      "description": "Closed-loop steps in the scored rollout. Default 40, must be >= 1 and <= 200.",
      +                      "maximum": 200,
      +                      "minimum": 1,
      +                      "type": "integer"
      +                    },
      +                    "plant_model_mismatch_pct": {
      +                      "default": 0,
      +                      "description": "Plant-model mismatch in percent. The plant is scaled by 1 + pct/100. Default 0.",
      +                      "type": "number"
      +                    },
      +                    "seed": {
      +                      "default": 0,
      +                      "description": "Seed for the sensor noise. Default 0.",
      +                      "type": "integer"
      +                    },
      +                    "sensor_noise_std": {
      +                      "default": 0,
      +                      "description": "Sensor noise standard deviation, in the plant's state units. Default 0, must be >= 0.",
      +                      "minimum": 0,
      +                      "type": "number"
      +                    },
      +                    "step_disturbance": {
      +                      "anyOf": [
      +                        {
      +                          "items": {
      +                            "type": "number"
      +                          },
      +                          "type": "array"
      +                        },
      +                        {
      +                          "type": "null"
      +                        }
      +                      ],
      +                      "default": null,
      +                      "description": "Constant disturbance applied from disturbance_onset_step, length nd. Omit for none."
      +                    },
      +                    "step_reference": {
      +                      "description": "Step state reference held for the rollout, length nx.",
      +                      "items": {
      +                        "type": "number"
      +                      },
      +                      "type": "array"
      +                    },
      +                    "x0": {
      +                      "description": "Initial state for the rollout, length nx, in the plant's state units.",
      +                      "items": {
      +                        "type": "number"
      +                      },
      +                      "type": "array"
      +                    }
      +                  },
      +                  "required": [
      +                    "x0",
      +                    "step_reference"
      +                  ],
      +                  "type": "object"
      +                },
      +                "maxItems": 12,
      +                "minItems": 1,
      +                "type": "array"
      +              }
      +            },
      +            "required": [
      +              "scenarios",
      +              "validation",
      +              "trials"
      +            ],
      +            "type": "object"
      +          },
      +          "maxItems": 4,
      +          "minItems": 1,
      +          "type": "array"
      +        },
      +        "timeout_seconds": {
      +          "description": "Wall-clock budget for every stage and the held-out scoring, in seconds. Must be > 0 and <= 120.",
      +          "exclusiveMinimum": 0,
      +          "maximum": 120,
      +          "type": "number"
      +        }
      +      },
      +      "required": [
      +        "stages",
      +        "held_out",
      +        "timeout_seconds"
      +      ],
      +      "type": "object"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Optional JSON stages. Omit to tune the single scenario in this request. When set, each stage uses only its supplied scenarios and the held-out block is scored afterward."
      +}
    • changedInput schema / properties / request / properties / system / oneOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "description": "Discrete or continuous linear plant.\n\nContinuous ``(A, B, Bd)`` are converted with a matrix exponential / zero-order\nhold at ``dt``. Discrete matrices are used as given. ``Bd`` defaults to ``B``\n(input disturbance) when omitted.",
      -    "properties": {
      -      "A": {
      -        "description": "State matrix, shape nx by nx, with nx <= 24. Discrete map or continuous xdot, matching time_mode.",
      -        "items": {
      -          "items": {
      -            "type": "number"
      -          },
      -          "type": "array"
      -        },
      -        "type": "array"
      -      },
      -      "B": {
      -        "description": "Input matrix, shape nx by nu, with nu <= 12.",
      -        "items": {
      -          "items": {
      -            "type": "number"
      -          },
      -          "type": "array"
      -        },
      -        "type": "array"
      -      },
      -      "Bd": {
      -        "anyOf": [
      -          {
      -            "items": {
      -              "items": {
      -                "type": "number"
      -              },
      -              "type": "array"
      -            },
      -            "type": "array"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "Disturbance matrix, shape nx by nd, with nd <= 12. Omit to reuse B as an input disturbance."
      -      },
      -      "C": {
      -        "anyOf": [
      -          {
      -            "items": {
      -              "items": {
      -                "type": "number"
      -              },
      -              "type": "array"
      -            },
      -            "type": "array"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "Output matrix, shape ny by nx. Omit for identity, which uses the full state."
      -      },
      -      "D": {
      -        "anyOf": [
      -          {
      -            "items": {
      -              "items": {
      -                "type": "number"
      -              },
      -              "type": "array"
      -            },
      -            "type": "array"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "Feedthrough matrix, shape ny by nu. Omit when there is no direct term."
      -      },
      -      "N": {
      -        "description": "Prediction horizon in steps. Must be >= 1. Values above 100 are rejected.",
      -        "minimum": 1,
      -        "type": "integer"
      -      },
      -      "dt": {
      -        "description": "Sample time. Must be > 0. Continuous plants are zero-order-hold discretized at this step. Use seconds unless A is written in another time unit.",
      -        "exclusiveMinimum": 0,
      -        "type": "number"
      -      },
      -      "du_max": {
      -        "anyOf": [
      -          {
      -            "items": {
      -              "type": "number"
      -            },
      -            "type": "array"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "Upper slew bounds on delta-u, length nu. Omit for 1e6 on each input. Slew bounds are hard."
      -      },
      -      "du_min": {
      -        "anyOf": [
      -          {
      -            "items": {
      -              "type": "number"
      -            },
      -            "type": "array"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "Lower slew bounds on delta-u, length nu. Omit for -1e6 on each input. Slew bounds are hard."
      -      },
      -      "kind": {
      -        "const": "linear",
      -        "default": "linear",
      -        "description": "Plant kind. Must be \"linear\" for matrices A and B.",
      -        "type": "string"
      -      },
      -      "time_mode": {
      -        "default": "discrete",
      -        "description": "discrete uses A and B as given. continuous is zero-order-hold discretized at dt. Default discrete.",
      -        "enum": [
      -          "discrete",
      -          "continuous"
      -        ],
      -        "type": "string"
      -      },
      -      "u_max": {
      -        "anyOf": [
      -          {
      -            "items": {
      -              "type": "number"
      -            },
      -            "type": "array"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "Upper input bounds, length nu, in the plant's input units. Omit for 1e6 on each input. Input bounds are hard."
      -      },
      -      "u_min": {
      -        "anyOf": [
      -          {
      -            "items": {
      -              "type": "number"
      -            },
      -            "type": "array"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "Lower input bounds, length nu, in the plant's input units. Omit for -1e6 on each input. Input bounds are hard."
      -      },
      -      "x_max": {
      -        "anyOf": [
      -          {
      -            "items": {
      -              "type": "number"
      -            },
      -            "type": "array"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "Upper state bounds, length nx, in the plant's state units. Omit for 1e6 on each state. State bounds are soft."
      -      },
      -      "x_min": {
      -        "anyOf": [
      -          {
      -            "items": {
      -              "type": "number"
      -            },
      -            "type": "array"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "Lower state bounds, length nx, in the plant's state units. Omit for -1e6 on each state. State bounds are soft."
      -      }
      -    },
      -    "required": [
      -      "A",
      -      "B",
      -      "dt",
      -      "N",
      -      "kind"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "description": "Registered dynamics template plus a validated parameter dictionary.",
      -    "properties": {
      -      "N": {
      -        "description": "Prediction horizon in steps. Must be >= 1 and <= 100.",
      -        "maximum": 100,
      -        "minimum": 1,
      -        "type": "integer"
      -      },
      -      "du_max": {
      -        "anyOf": [
      -          {
      -            "items": {
      -              "type": "number"
      -            },
      -            "type": "array"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "Upper slew bounds on delta-u, length nu. Omit for 1e6 on each input. Slew bounds are hard."
      -      },
      -      "du_min": {
      -        "anyOf": [
      -          {
      -            "items": {
      -              "type": "number"
      -            },
      -            "type": "array"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "Lower slew bounds on delta-u, length nu. Omit for -1e6 on each input. Slew bounds are hard."
      -      },
      -      "kind": {
      -        "const": "nonlinear",
      -        "default": "nonlinear",
      -        "description": "Plant kind. Must be \"nonlinear\" for a registered template.",
      -        "type": "string"
      -      },
      -      "name": {
      -        "description": "Registered template: double_integrator, thermal_rc_zone, soil_moisture_cascade, unicycle_kinematics, gravity_tank, or cart_pendulum.",
      -        "enum": [
      -          "double_integrator",
      -          "thermal_rc_zone",
      -          "soil_moisture_cascade",
      -          "unicycle_kinematics",
      -          "gravity_tank",
      -          "cart_pendulum"
      -        ],
      -        "type": "string"
      -      },
      -      "parameters": {
      -        "additionalProperties": {
      -          "type": "number"
      -        },
      -        "description": "Template knobs, one number per required key. double_integrator and unicycle_kinematics: dt > 0 (seconds). thermal_rc_zone: dt > 0, capacity > 0, time_constant > 0, and ambient. soil_moisture_cascade: dt > 0, capacity > 0, tau_1 > 0, tau_2 > 0, tau_3 > 0, k_12 >= 0, k_23 >= 0. gravity_tank: dt > 0, discharge > 0, inflow_gain > 0. cart_pendulum: dt, cart_mass, pole_mass, friction, inertia, gravity, and length, each > 0. Unknown keys are rejected.",
      -        "type": "object"
      -      },
      -      "u_max": {
      -        "anyOf": [
      -          {
      -            "items": {
      -              "type": "number"
      -            },
      -            "type": "array"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "Upper input bounds, length nu, in the plant's input units. Omit for 1e6 on each input. Input bounds are hard."
      -      },
      -      "u_min": {
      -        "anyOf": [
      -          {
      -            "items": {
      -              "type": "number"
      -            },
      -            "type": "array"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "Lower input bounds, length nu, in the plant's input units. Omit for -1e6 on each input. Input bounds are hard."
      -      },
      -      "x_max": {
      -        "anyOf": [
      -          {
      -            "items": {
      -              "type": "number"
      -            },
      -            "type": "array"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "Upper state bounds, length nx, in the plant's state units. Omit for 1e6 on each state. State bounds are soft."
      -      },
      -      "x_min": {
      -        "anyOf": [
      -          {
      -            "items": {
      -              "type": "number"
      -            },
      -            "type": "array"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "Lower state bounds, length nx, in the plant's state units. Omit for -1e6 on each state. State bounds are soft."
      -      }
      -    },
      -    "required": [
      -      "name",
      -      "parameters",
      -      "N",
      -      "kind"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "description": "Discrete or continuous linear plant.\n\nContinuous ``(A, B, Bd)`` are converted with a matrix exponential / zero-order\nhold at ``dt``. Discrete matrices are used as given. ``Bd`` defaults to ``B``\n(input disturbance) when omitted.",
      +    "properties": {
      +      "A": {
      +        "description": "State matrix, shape nx by nx, with nx <= 24. Discrete map or continuous xdot, matching time_mode.",
      +        "items": {
      +          "items": {
      +            "maximum": 1000000000000,
      +            "minimum": -1000000000000,
      +            "type": "number"
      +          },
      +          "type": "array"
      +        },
      +        "type": "array"
      +      },
      +      "B": {
      +        "description": "Input matrix, shape nx by nu, with nu <= 12.",
      +        "items": {
      +          "items": {
      +            "maximum": 1000000000000,
      +            "minimum": -1000000000000,
      +            "type": "number"
      +          },
      +          "type": "array"
      +        },
      +        "type": "array"
      +      },
      +      "Bd": {
      +        "anyOf": [
      +          {
      +            "items": {
      +              "items": {
      +                "maximum": 1000000000000,
      +                "minimum": -1000000000000,
      +                "type": "number"
      +              },
      +              "type": "array"
      +            },
      +            "type": "array"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Disturbance matrix, shape nx by nd, with nd <= 12. Omit to reuse B as an input disturbance."
      +      },
      +      "C": {
      +        "anyOf": [
      +          {
      +            "items": {
      +              "items": {
      +                "maximum": 1000000000000,
      +                "minimum": -1000000000000,
      +                "type": "number"
      +              },
      +              "type": "array"
      +            },
      +            "type": "array"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Output matrix, shape ny by nx. Omit for identity, which uses the full state."
      +      },
      +      "D": {
      +        "anyOf": [
      +          {
      +            "items": {
      +              "items": {
      +                "maximum": 1000000000000,
      +                "minimum": -1000000000000,
      +                "type": "number"
      +              },
      +              "type": "array"
      +            },
      +            "type": "array"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Feedthrough matrix, shape ny by nu. Omit when there is no direct term."
      +      },
      +      "N": {
      +        "description": "Prediction horizon in steps. Must be >= 1. Values above 100 are rejected.",
      +        "minimum": 1,
      +        "type": "integer"
      +      },
      +      "dt": {
      +        "description": "Sample time. Must be > 0. Continuous plants are zero-order-hold discretized at this step. Use seconds unless A is written in another time unit.",
      +        "exclusiveMinimum": 0,
      +        "maximum": 1000000,
      +        "type": "number"
      +      },
      +      "du_max": {
      +        "anyOf": [
      +          {
      +            "items": {
      +              "maximum": 1000000000000,
      +              "minimum": -1000000000000,
      +              "type": "number"
      +            },
      +            "type": "array"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Upper slew bounds on delta-u, length nu. Omit for 1e6 on each input. Slew bounds are hard."
      +      },
      +      "du_min": {
      +        "anyOf": [
      +          {
      +            "items": {
      +              "maximum": 1000000000000,
      +              "minimum": -1000000000000,
      +              "type": "number"
      +            },
      +            "type": "array"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Lower slew bounds on delta-u, length nu. Omit for -1e6 on each input. Slew bounds are hard."
      +      },
      +      "kind": {
      +        "const": "linear",
      +        "default": "linear",
      +        "description": "Plant kind. Must be \"linear\" for matrices A and B.",
      +        "type": "string"
      +      },
      +      "time_mode": {
      +        "default": "discrete",
      +        "description": "discrete uses A and B as given. continuous is zero-order-hold discretized at dt. Default discrete.",
      +        "enum": [
      +          "discrete",
      +          "continuous"
      +        ],
      +        "type": "string"
      +      },
      +      "u_max": {
      +        "anyOf": [
      +          {
      +            "items": {
      +              "maximum": 1000000000000,
      +              "minimum": -1000000000000,
      +              "type": "number"
      +            },
      +            "type": "array"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Upper input bounds, length nu, in the plant's input units. Omit for 1e6 on each input. Input bounds are hard."
      +      },
      +      "u_min": {
      +        "anyOf": [
      +          {
      +            "items": {
      +              "maximum": 1000000000000,
      +              "minimum": -1000000000000,
      +              "type": "number"
      +            },
      +            "type": "array"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Lower input bounds, length nu, in the plant's input units. Omit for -1e6 on each input. Input bounds are hard."
      +      },
      +      "x_max": {
      +        "anyOf": [
      +          {
      +            "items": {
      +              "maximum": 1000000000000,
      +              "minimum": -1000000000000,
      +              "type": "number"
      +            },
      +            "type": "array"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Upper state bounds, length nx, in the plant's state units. Omit for 1e6 on each state. State bounds are soft."
      +      },
      +      "x_min": {
      +        "anyOf": [
      +          {
      +            "items": {
      +              "maximum": 1000000000000,
      +              "minimum": -1000000000000,
      +              "type": "number"
      +            },
      +            "type": "array"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Lower state bounds, length nx, in the plant's state units. Omit for -1e6 on each state. State bounds are soft."
      +      }
      +    },
      +    "required": [
      +      "A",
      +      "B",
      +      "dt",
      +      "N",
      +      "kind"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "description": "Registered dynamics template plus a validated parameter dictionary.",
      +    "properties": {
      +      "N": {
      +        "description": "Prediction horizon in steps. Must be >= 1 and <= 100.",
      +        "maximum": 100,
      +        "minimum": 1,
      +        "type": "integer"
      +      },
      +      "du_max": {
      +        "anyOf": [
      +          {
      +            "items": {
      +              "maximum": 1000000000000,
      +              "minimum": -1000000000000,
      +              "type": "number"
      +            },
      +            "type": "array"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Upper slew bounds on delta-u, length nu. Omit for 1e6 on each input. Slew bounds are hard."
      +      },
      +      "du_min": {
      +        "anyOf": [
      +          {
      +            "items": {
      +              "maximum": 1000000000000,
      +              "minimum": -1000000000000,
      +              "type": "number"
      +            },
      +            "type": "array"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Lower slew bounds on delta-u, length nu. Omit for -1e6 on each input. Slew bounds are hard."
      +      },
      +      "kind": {
      +        "const": "nonlinear",
      +        "default": "nonlinear",
      +        "description": "Plant kind. Must be \"nonlinear\" for a registered template.",
      +        "type": "string"
      +      },
      +      "name": {
      +        "description": "Registered template: double_integrator, thermal_rc_zone, soil_moisture_cascade, unicycle_kinematics, gravity_tank, cart_pendulum, icr_skid_steer, or ackermann.",
      +        "enum": [
      +          "double_integrator",
      +          "thermal_rc_zone",
      +          "soil_moisture_cascade",
      +          "unicycle_kinematics",
      +          "gravity_tank",
      +          "cart_pendulum",
      +          "icr_skid_steer",
      +          "ackermann"
      +        ],
      +        "type": "string"
      +      },
      +      "parameters": {
      +        "additionalProperties": {
      +          "maximum": 1000000000000,
      +          "minimum": -1000000000000,
      +          "type": "number"
      +        },
      +        "description": "Template knobs, one number per required key. double_integrator and unicycle_kinematics: dt > 0 (seconds). thermal_rc_zone: dt > 0, capacity > 0, time_constant > 0, and ambient. soil_moisture_cascade: dt > 0, capacity > 0, tau_1 > 0, tau_2 > 0, tau_3 > 0, k_12 >= 0, k_23 >= 0. gravity_tank: dt > 0, discharge > 0, inflow_gain > 0. cart_pendulum: dt, cart_mass, pole_mass, friction, inertia, gravity, and length, each > 0. icr_skid_steer: dt > 0 and slip, a signed length with abs(slip) <= 10. Body-frame lateral velocity equals slip * yaw_rate. If x_icr is the forward coordinate of the instantaneous center, positive ahead of the reference point, slip = -x_icr. ackermann: dt > 0 and wheelbase > 0. The steer component of u_min and u_max must lie inside ±1.2 rad. Unknown keys are rejected.",
      +        "type": "object"
      +      },
      +      "u_max": {
      +        "anyOf": [
      +          {
      +            "items": {
      +              "maximum": 1000000000000,
      +              "minimum": -1000000000000,
      +              "type": "number"
      +            },
      +            "type": "array"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Upper input bounds, length nu, in the plant's input units. Omit for 1e6 on each input. Input bounds are hard."
      +      },
      +      "u_min": {
      +        "anyOf": [
      +          {
      +            "items": {
      +              "maximum": 1000000000000,
      +              "minimum": -1000000000000,
      +              "type": "number"
      +            },
      +            "type": "array"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Lower input bounds, length nu, in the plant's input units. Omit for -1e6 on each input. Input bounds are hard."
      +      },
      +      "x_max": {
      +        "anyOf": [
      +          {
      +            "items": {
      +              "maximum": 1000000000000,
      +              "minimum": -1000000000000,
      +              "type": "number"
      +            },
      +            "type": "array"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Upper state bounds, length nx, in the plant's state units. Omit for 1e6 on each state. State bounds are soft."
      +      },
      +      "x_min": {
      +        "anyOf": [
      +          {
      +            "items": {
      +              "maximum": 1000000000000,
      +              "minimum": -1000000000000,
      +              "type": "number"
      +            },
      +            "type": "array"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Lower state bounds, length nx, in the plant's state units. Omit for -1e6 on each state. State bounds are soft."
      +      }
      +    },
      +    "required": [
      +      "name",
      +      "parameters",
      +      "N",
      +      "kind"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "description": "Allowlisted scalar expressions, one per state row.\n\n``time_mode`` ``continuous`` is integrated with classical RK4 at ``dt``.\n``discrete`` means each expression is already the next state. ``p`` is a\nnumeric parameter vector baked into the discrete map. ``nd`` may be 0.\nDeclaring ``nd >= 1`` and never using ``d[i]`` is accepted; detectability\nis then false because the disturbance columns of the discrete Jacobian are zero.",
      +    "properties": {
      +      "C": {
      +        "anyOf": [
      +          {
      +            "items": {
      +              "items": {
      +                "maximum": 1000000000000,
      +                "minimum": -1000000000000,
      +                "type": "number"
      +              },
      +              "type": "array"
      +            },
      +            "type": "array"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Output matrix, shape ny by nx, with ny <= 8. Omit for identity."
      +      },
      +      "N": {
      +        "description": "Prediction horizon in steps. Must be >= 1 and <= 60.",
      +        "maximum": 60,
      +        "minimum": 1,
      +        "type": "integer"
      +      },
      +      "dt": {
      +        "description": "Sample time. Must be > 0. Continuous plants are zero-order-hold discretized at this step. Use seconds unless A is written in another time unit.",
      +        "exclusiveMinimum": 0,
      +        "maximum": 1000000,
      +        "type": "number"
      +      },
      +      "du_max": {
      +        "anyOf": [
      +          {
      +            "items": {
      +              "maximum": 1000000000000,
      +              "minimum": -1000000000000,
      +              "type": "number"
      +            },
      +            "type": "array"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Upper slew bounds on delta-u, length nu. Omit for 1e6 on each input. Slew bounds are hard."
      +      },
      +      "du_min": {
      +        "anyOf": [
      +          {
      +            "items": {
      +              "maximum": 1000000000000,
      +              "minimum": -1000000000000,
      +              "type": "number"
      +            },
      +            "type": "array"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Lower slew bounds on delta-u, length nu. Omit for -1e6 on each input. Slew bounds are hard."
      +      },
      +      "f": {
      +        "description": "One scalar expression per state, length nx. Each string is at most 512 characters and the set is at most 4096. Symbols are x[i], u[i], d[i], p[i], pi, and the smooth allowlist sin, cos, tan, atan, atan2, exp, log, tanh, sqrt, hypot, sq, plus + - * / and ^2 ^3 ^4.",
      +        "items": {
      +          "type": "string"
      +        },
      +        "maxItems": 8,
      +        "minItems": 1,
      +        "type": "array"
      +      },
      +      "kind": {
      +        "const": "expression",
      +        "default": "expression",
      +        "description": "Plant kind. Must be \"expression\" for allowlisted scalar expressions.",
      +        "type": "string"
      +      },
      +      "nd": {
      +        "description": "Disturbance dimension. Must be >= 0 and <= 4. Zero is a plant with no disturbance channel. An unused d[i] when nd is positive does not change the map and reports detectable false.",
      +        "maximum": 4,
      +        "minimum": 0,
      +        "type": "integer"
      +      },
      +      "np": {
      +        "description": "Parameter dimension. Must be >= 0 and <= 8.",
      +        "maximum": 8,
      +        "minimum": 0,
      +        "type": "integer"
      +      },
      +      "nu": {
      +        "description": "Input dimension. Must be >= 1 and <= 4.",
      +        "maximum": 4,
      +        "minimum": 1,
      +        "type": "integer"
      +      },
      +      "nx": {
      +        "description": "State dimension. Must be >= 1 and <= 8.",
      +        "maximum": 8,
      +        "minimum": 1,
      +        "type": "integer"
      +      },
      +      "p": {
      +        "description": "Numeric parameter values, length np. Baked into the discrete map.",
      +        "items": {
      +          "maximum": 1000000000000,
      +          "minimum": -1000000000000,
      +          "type": "number"
      +        },
      +        "maxItems": 8,
      +        "type": "array"
      +      },
      +      "time_mode": {
      +        "default": "continuous",
      +        "description": "continuous integrates the expressions with classical RK4 at dt. discrete uses each expression as the next state. Default continuous.",
      +        "enum": [
      +          "continuous",
      +          "discrete"
      +        ],
      +        "type": "string"
      +      },
      +      "u_max": {
      +        "anyOf": [
      +          {
      +            "items": {
      +              "maximum": 1000000000000,
      +              "minimum": -1000000000000,
      +              "type": "number"
      +            },
      +            "type": "array"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Upper input bounds, length nu, in the plant's input units. Omit for 1e6 on each input. Input bounds are hard."
      +      },
      +      "u_min": {
      +        "anyOf": [
      +          {
      +            "items": {
      +              "maximum": 1000000000000,
      +              "minimum": -1000000000000,
      +              "type": "number"
      +            },
      +            "type": "array"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Lower input bounds, length nu, in the plant's input units. Omit for -1e6 on each input. Input bounds are hard."
      +      },
      +      "x_max": {
      +        "anyOf": [
      +          {
      +            "items": {
      +              "maximum": 1000000000000,
      +              "minimum": -1000000000000,
      +              "type": "number"
      +            },
      +            "type": "array"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Upper state bounds, length nx, in the plant's state units. Omit for 1e6 on each state. State bounds are soft."
      +      },
      +      "x_min": {
      +        "anyOf": [
      +          {
      +            "items": {
      +              "maximum": 1000000000000,
      +              "minimum": -1000000000000,
      +              "type": "number"
      +            },
      +            "type": "array"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Lower state bounds, length nx, in the plant's state units. Omit for -1e6 on each state. State bounds are soft."
      +      }
      +    },
      +    "required": [
      +      "nx",
      +      "nu",
      +      "nd",
      +      "np",
      +      "f",
      +      "dt",
      +      "N",
      +      "kind"
      +    ],
      +    "type": "object"
      +  }
      +]
  2. Changed1 schema field changed
    • changedInput schema / properties / request / properties / system / oneOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "description": "Discrete or continuous linear plant.\n\nContinuous ``(A, B, Bd)`` are converted with a matrix exponential / zero-order\nhold at ``dt``. Discrete matrices are used as given. ``Bd`` defaults to ``B``\n(input disturbance) when omitted.",
      -    "properties": {
      -      "A": {
      -        "description": "State matrix, shape nx by nx, with nx <= 24. Discrete map or continuous xdot, matching time_mode.",
      -        "items": {
      -          "items": {
      -            "type": "number"
      -          },
      -          "type": "array"
      -        },
      -        "type": "array"
      -      },
      -      "B": {
      -        "description": "Input matrix, shape nx by nu, with nu <= 12.",
      -        "items": {
      -          "items": {
      -            "type": "number"
      -          },
      -          "type": "array"
      -        },
      -        "type": "array"
      -      },
      -      "Bd": {
      -        "anyOf": [
      -          {
      -            "items": {
      -              "items": {
      -                "type": "number"
      -              },
      -              "type": "array"
      -            },
      -            "type": "array"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "Disturbance matrix, shape nx by nd, with nd <= 12. Omit to reuse B as an input disturbance."
      -      },
      -      "C": {
      -        "anyOf": [
      -          {
      -            "items": {
      -              "items": {
      -                "type": "number"
      -              },
      -              "type": "array"
      -            },
      -            "type": "array"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "Output matrix, shape ny by nx. Omit for identity, which uses the full state."
      -      },
      -      "D": {
      -        "anyOf": [
      -          {
      -            "items": {
      -              "items": {
      -                "type": "number"
      -              },
      -              "type": "array"
      -            },
      -            "type": "array"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "Feedthrough matrix, shape ny by nu. Omit when there is no direct term."
      -      },
      -      "N": {
      -        "description": "Prediction horizon in steps. Must be >= 1. Values above 100 are rejected.",
      -        "minimum": 1,
      -        "type": "integer"
      -      },
      -      "dt": {
      -        "description": "Sample time. Must be > 0. Continuous plants are zero-order-hold discretized at this step. Use seconds unless A is written in another time unit.",
      -        "exclusiveMinimum": 0,
      -        "type": "number"
      -      },
      -      "du_max": {
      -        "anyOf": [
      -          {
      -            "items": {
      -              "type": "number"
      -            },
      -            "type": "array"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "Upper slew bounds on delta-u, length nu. Omit for 1e6 on each input. Slew bounds are hard."
      -      },
      -      "du_min": {
      -        "anyOf": [
      -          {
      -            "items": {
      -              "type": "number"
      -            },
      -            "type": "array"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "Lower slew bounds on delta-u, length nu. Omit for -1e6 on each input. Slew bounds are hard."
      -      },
      -      "kind": {
      -        "const": "linear",
      -        "default": "linear",
      -        "description": "Plant kind. Must be \"linear\" for matrices A and B.",
      -        "type": "string"
      -      },
      -      "time_mode": {
      -        "default": "discrete",
      -        "description": "discrete uses A and B as given. continuous is zero-order-hold discretized at dt. Default discrete.",
      -        "enum": [
      -          "discrete",
      -          "continuous"
      -        ],
      -        "type": "string"
      -      },
      -      "u_max": {
      -        "anyOf": [
      -          {
      -            "items": {
      -              "type": "number"
      -            },
      -            "type": "array"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "Upper input bounds, length nu, in the plant's input units. Omit for 1e6 on each input. Input bounds are hard."
      -      },
      -      "u_min": {
      -        "anyOf": [
      -          {
      -            "items": {
      -              "type": "number"
      -            },
      -            "type": "array"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "Lower input bounds, length nu, in the plant's input units. Omit for -1e6 on each input. Input bounds are hard."
      -      },
      -      "x_max": {
      -        "anyOf": [
      -          {
      -            "items": {
      -              "type": "number"
      -            },
      -            "type": "array"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "Upper state bounds, length nx, in the plant's state units. Omit for 1e6 on each state. State bounds are soft."
      -      },
      -      "x_min": {
      -        "anyOf": [
      -          {
      -            "items": {
      -              "type": "number"
      -            },
      -            "type": "array"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "Lower state bounds, length nx, in the plant's state units. Omit for -1e6 on each state. State bounds are soft."
      -      }
      -    },
      -    "required": [
      -      "A",
      -      "B",
      -      "dt",
      -      "N",
      -      "kind"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "description": "Registered dynamics template plus a validated parameter dictionary.",
      -    "properties": {
      -      "N": {
      -        "description": "Prediction horizon in steps. Must be >= 1 and <= 100.",
      -        "maximum": 100,
      -        "minimum": 1,
      -        "type": "integer"
      -      },
      -      "du_max": {
      -        "anyOf": [
      -          {
      -            "items": {
      -              "type": "number"
      -            },
      -            "type": "array"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "Upper slew bounds on delta-u, length nu. Omit for 1e6 on each input. Slew bounds are hard."
      -      },
      -      "du_min": {
      -        "anyOf": [
      -          {
      -            "items": {
      -              "type": "number"
      -            },
      -            "type": "array"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "Lower slew bounds on delta-u, length nu. Omit for -1e6 on each input. Slew bounds are hard."
      -      },
      -      "kind": {
      -        "const": "nonlinear",
      -        "default": "nonlinear",
      -        "description": "Plant kind. Must be \"nonlinear\" for a registered template.",
      -        "type": "string"
      -      },
      -      "name": {
      -        "description": "Registered template: double_integrator, thermal_rc_zone, soil_moisture_cascade, or unicycle_kinematics.",
      -        "enum": [
      -          "double_integrator",
      -          "thermal_rc_zone",
      -          "soil_moisture_cascade",
      -          "unicycle_kinematics"
      -        ],
      -        "type": "string"
      -      },
      -      "parameters": {
      -        "additionalProperties": {
      -          "type": "number"
      -        },
      -        "description": "Template knobs, one number per required key. double_integrator and unicycle_kinematics: dt > 0 (seconds). thermal_rc_zone: dt > 0, capacity > 0, time_constant > 0, and ambient. soil_moisture_cascade: dt > 0, capacity > 0, tau_1 > 0, tau_2 > 0, tau_3 > 0, k_12 >= 0, k_23 >= 0. Unknown keys are rejected.",
      -        "type": "object"
      -      },
      -      "u_max": {
      -        "anyOf": [
      -          {
      -            "items": {
      -              "type": "number"
      -            },
      -            "type": "array"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "Upper input bounds, length nu, in the plant's input units. Omit for 1e6 on each input. Input bounds are hard."
      -      },
      -      "u_min": {
      -        "anyOf": [
      -          {
      -            "items": {
      -              "type": "number"
      -            },
      -            "type": "array"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "Lower input bounds, length nu, in the plant's input units. Omit for -1e6 on each input. Input bounds are hard."
      -      },
      -      "x_max": {
      -        "anyOf": [
      -          {
      -            "items": {
      -              "type": "number"
      -            },
      -            "type": "array"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "Upper state bounds, length nx, in the plant's state units. Omit for 1e6 on each state. State bounds are soft."
      -      },
      -      "x_min": {
      -        "anyOf": [
      -          {
      -            "items": {
      -              "type": "number"
      -            },
      -            "type": "array"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "Lower state bounds, length nx, in the plant's state units. Omit for -1e6 on each state. State bounds are soft."
      -      }
      -    },
      -    "required": [
      -      "name",
      -      "parameters",
      -      "N",
      -      "kind"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "description": "Discrete or continuous linear plant.\n\nContinuous ``(A, B, Bd)`` are converted with a matrix exponential / zero-order\nhold at ``dt``. Discrete matrices are used as given. ``Bd`` defaults to ``B``\n(input disturbance) when omitted.",
      +    "properties": {
      +      "A": {
      +        "description": "State matrix, shape nx by nx, with nx <= 24. Discrete map or continuous xdot, matching time_mode.",
      +        "items": {
      +          "items": {
      +            "type": "number"
      +          },
      +          "type": "array"
      +        },
      +        "type": "array"
      +      },
      +      "B": {
      +        "description": "Input matrix, shape nx by nu, with nu <= 12.",
      +        "items": {
      +          "items": {
      +            "type": "number"
      +          },
      +          "type": "array"
      +        },
      +        "type": "array"
      +      },
      +      "Bd": {
      +        "anyOf": [
      +          {
      +            "items": {
      +              "items": {
      +                "type": "number"
      +              },
      +              "type": "array"
      +            },
      +            "type": "array"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Disturbance matrix, shape nx by nd, with nd <= 12. Omit to reuse B as an input disturbance."
      +      },
      +      "C": {
      +        "anyOf": [
      +          {
      +            "items": {
      +              "items": {
      +                "type": "number"
      +              },
      +              "type": "array"
      +            },
      +            "type": "array"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Output matrix, shape ny by nx. Omit for identity, which uses the full state."
      +      },
      +      "D": {
      +        "anyOf": [
      +          {
      +            "items": {
      +              "items": {
      +                "type": "number"
      +              },
      +              "type": "array"
      +            },
      +            "type": "array"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Feedthrough matrix, shape ny by nu. Omit when there is no direct term."
      +      },
      +      "N": {
      +        "description": "Prediction horizon in steps. Must be >= 1. Values above 100 are rejected.",
      +        "minimum": 1,
      +        "type": "integer"
      +      },
      +      "dt": {
      +        "description": "Sample time. Must be > 0. Continuous plants are zero-order-hold discretized at this step. Use seconds unless A is written in another time unit.",
      +        "exclusiveMinimum": 0,
      +        "type": "number"
      +      },
      +      "du_max": {
      +        "anyOf": [
      +          {
      +            "items": {
      +              "type": "number"
      +            },
      +            "type": "array"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Upper slew bounds on delta-u, length nu. Omit for 1e6 on each input. Slew bounds are hard."
      +      },
      +      "du_min": {
      +        "anyOf": [
      +          {
      +            "items": {
      +              "type": "number"
      +            },
      +            "type": "array"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Lower slew bounds on delta-u, length nu. Omit for -1e6 on each input. Slew bounds are hard."
      +      },
      +      "kind": {
      +        "const": "linear",
      +        "default": "linear",
      +        "description": "Plant kind. Must be \"linear\" for matrices A and B.",
      +        "type": "string"
      +      },
      +      "time_mode": {
      +        "default": "discrete",
      +        "description": "discrete uses A and B as given. continuous is zero-order-hold discretized at dt. Default discrete.",
      +        "enum": [
      +          "discrete",
      +          "continuous"
      +        ],
      +        "type": "string"
      +      },
      +      "u_max": {
      +        "anyOf": [
      +          {
      +            "items": {
      +              "type": "number"
      +            },
      +            "type": "array"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Upper input bounds, length nu, in the plant's input units. Omit for 1e6 on each input. Input bounds are hard."
      +      },
      +      "u_min": {
      +        "anyOf": [
      +          {
      +            "items": {
      +              "type": "number"
      +            },
      +            "type": "array"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Lower input bounds, length nu, in the plant's input units. Omit for -1e6 on each input. Input bounds are hard."
      +      },
      +      "x_max": {
      +        "anyOf": [
      +          {
      +            "items": {
      +              "type": "number"
      +            },
      +            "type": "array"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Upper state bounds, length nx, in the plant's state units. Omit for 1e6 on each state. State bounds are soft."
      +      },
      +      "x_min": {
      +        "anyOf": [
      +          {
      +            "items": {
      +              "type": "number"
      +            },
      +            "type": "array"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Lower state bounds, length nx, in the plant's state units. Omit for -1e6 on each state. State bounds are soft."
      +      }
      +    },
      +    "required": [
      +      "A",
      +      "B",
      +      "dt",
      +      "N",
      +      "kind"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "description": "Registered dynamics template plus a validated parameter dictionary.",
      +    "properties": {
      +      "N": {
      +        "description": "Prediction horizon in steps. Must be >= 1 and <= 100.",
      +        "maximum": 100,
      +        "minimum": 1,
      +        "type": "integer"
      +      },
      +      "du_max": {
      +        "anyOf": [
      +          {
      +            "items": {
      +              "type": "number"
      +            },
      +            "type": "array"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Upper slew bounds on delta-u, length nu. Omit for 1e6 on each input. Slew bounds are hard."
      +      },
      +      "du_min": {
      +        "anyOf": [
      +          {
      +            "items": {
      +              "type": "number"
      +            },
      +            "type": "array"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Lower slew bounds on delta-u, length nu. Omit for -1e6 on each input. Slew bounds are hard."
      +      },
      +      "kind": {
      +        "const": "nonlinear",
      +        "default": "nonlinear",
      +        "description": "Plant kind. Must be \"nonlinear\" for a registered template.",
      +        "type": "string"
      +      },
      +      "name": {
      +        "description": "Registered template: double_integrator, thermal_rc_zone, soil_moisture_cascade, unicycle_kinematics, gravity_tank, or cart_pendulum.",
      +        "enum": [
      +          "double_integrator",
      +          "thermal_rc_zone",
      +          "soil_moisture_cascade",
      +          "unicycle_kinematics",
      +          "gravity_tank",
      +          "cart_pendulum"
      +        ],
      +        "type": "string"
      +      },
      +      "parameters": {
      +        "additionalProperties": {
      +          "type": "number"
      +        },
      +        "description": "Template knobs, one number per required key. double_integrator and unicycle_kinematics: dt > 0 (seconds). thermal_rc_zone: dt > 0, capacity > 0, time_constant > 0, and ambient. soil_moisture_cascade: dt > 0, capacity > 0, tau_1 > 0, tau_2 > 0, tau_3 > 0, k_12 >= 0, k_23 >= 0. gravity_tank: dt > 0, discharge > 0, inflow_gain > 0. cart_pendulum: dt, cart_mass, pole_mass, friction, inertia, gravity, and length, each > 0. Unknown keys are rejected.",
      +        "type": "object"
      +      },
      +      "u_max": {
      +        "anyOf": [
      +          {
      +            "items": {
      +              "type": "number"
      +            },
      +            "type": "array"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Upper input bounds, length nu, in the plant's input units. Omit for 1e6 on each input. Input bounds are hard."
      +      },
      +      "u_min": {
      +        "anyOf": [
      +          {
      +            "items": {
      +              "type": "number"
      +            },
      +            "type": "array"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Lower input bounds, length nu, in the plant's input units. Omit for -1e6 on each input. Input bounds are hard."
      +      },
      +      "x_max": {
      +        "anyOf": [
      +          {
      +            "items": {
      +              "type": "number"
      +            },
      +            "type": "array"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Upper state bounds, length nx, in the plant's state units. Omit for 1e6 on each state. State bounds are soft."
      +      },
      +      "x_min": {
      +        "anyOf": [
      +          {
      +            "items": {
      +              "type": "number"
      +            },
      +            "type": "array"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Lower state bounds, length nx, in the plant's state units. Omit for -1e6 on each state. State bounds are soft."
      +      }
      +    },
      +    "required": [
      +      "name",
      +      "parameters",
      +      "N",
      +      "kind"
      +    ],
      +    "type": "object"
      +  }
      +]
  3. Changed19 schema fields changed
    • addedInput schema / properties / request / description
      Added value: +"Paid Optuna study at $1.50. Send X-API-Key while the pack has an autotune credit, or pay HTTP 402 with x402 on Base USDC. Validate the plant free first, then solve, then this job when Q, R, Rd, and Qf are unknown. Each call starts a new job. Poll get_autotune_job with the returned job_id."
    • addedInput schema / properties / request / properties / kpi / description
      Added value: +"Scorecard weights and the Optuna trial and time budget."
    • addedInput schema / properties / request / properties / kpi / properties / control_effort_weight / description
      Added value: +"Weight on control effort in the score. Must be >= 0."
    • addedInput schema / properties / request / properties / kpi / properties / max_optuna_trials / description
      Added value: +"Optuna trials in the study. Must be >= 1 and <= 40."
    • addedInput schema / properties / request / properties / kpi / properties / settling_time_weight / description
      Added value: +"Weight on settling time in the score. Must be >= 0."
    • addedInput schema / properties / request / properties / kpi / properties / slew_penalty_weight / description
      Added value: +"Weight on input slew in the score. Must be >= 0."
    • addedInput schema / properties / request / properties / kpi / properties / target_max_overshoot_pct / description
      Added value: +"Overshoot target in percent. Must be >= 0."
    • addedInput schema / properties / request / properties / kpi / properties / timeout_seconds / description
      Added value: +"Study wall-clock limit in seconds. Must be > 0 and <= 120. The study stops at this budget."
    • changedInput schema / properties / request / properties / scenario / description
      Previous value: -"Step-reference rollout used by the auto-tuner."New value: +"Closed-loop rollout the tuner scores, including mismatch and noise."
    • addedInput schema / properties / request / properties / scenario / properties / disturbance_onset_step / description
      Added value: +"Closed-loop step index when step_disturbance turns on. Default 0, must be >= 0."
    • addedInput schema / properties / request / properties / scenario / properties / n_steps / description
      Added value: +"Closed-loop steps in the scored rollout. Default 40, must be >= 1 and <= 200."
    • addedInput schema / properties / request / properties / scenario / properties / plant_model_mismatch_pct / description
      Added value: +"Plant-model mismatch in percent. The plant is scaled by 1 + pct/100. Default 0."
    • addedInput schema / properties / request / properties / scenario / properties / seed / description
      Added value: +"Seed for the sensor noise. Default 0."
    • addedInput schema / properties / request / properties / scenario / properties / sensor_noise_std / description
      Added value: +"Sensor noise standard deviation, in the plant's state units. Default 0, must be >= 0."
    • addedInput schema / properties / request / properties / scenario / properties / step_disturbance / description
      Added value: +"Constant disturbance applied from disturbance_onset_step, length nd. Omit for none."
    • addedInput schema / properties / request / properties / scenario / properties / step_reference / description
      Added value: +"Step state reference held for the rollout, length nx."
    • addedInput schema / properties / request / properties / scenario / properties / x0 / description
      Added value: +"Initial state for the rollout, length nx, in the plant's state units."
    • addedInput schema / properties / request / properties / system / description
      Added value: +"Plant for the study. Free validate_problem first. This request is the paid autotune step after a solve, when the quadratic weights are still unknown."
    • changedInput schema / properties / request / properties / system / oneOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "description": "Discrete or continuous linear plant.\n\nContinuous ``(A, B, Bd)`` are converted with a matrix exponential / zero-order\nhold at ``dt``. Discrete matrices are used as given. ``Bd`` defaults to ``B``\n(input disturbance) when omitted.",
      -    "properties": {
      -      "A": {
      -        "items": {
      -          "items": {
      -            "type": "number"
      -          },
      -          "type": "array"
      -        },
      -        "type": "array"
      -      },
      -      "B": {
      -        "items": {
      -          "items": {
      -            "type": "number"
      -          },
      -          "type": "array"
      -        },
      -        "type": "array"
      -      },
      -      "Bd": {
      -        "anyOf": [
      -          {
      -            "items": {
      -              "items": {
      -                "type": "number"
      -              },
      -              "type": "array"
      -            },
      -            "type": "array"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null
      -      },
      -      "C": {
      -        "anyOf": [
      -          {
      -            "items": {
      -              "items": {
      -                "type": "number"
      -              },
      -              "type": "array"
      -            },
      -            "type": "array"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null
      -      },
      -      "D": {
      -        "anyOf": [
      -          {
      -            "items": {
      -              "items": {
      -                "type": "number"
      -              },
      -              "type": "array"
      -            },
      -            "type": "array"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null
      -      },
      -      "N": {
      -        "minimum": 1,
      -        "type": "integer"
      -      },
      -      "dt": {
      -        "exclusiveMinimum": 0,
      -        "type": "number"
      -      },
      -      "du_max": {
      -        "anyOf": [
      -          {
      -            "items": {
      -              "type": "number"
      -            },
      -            "type": "array"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null
      -      },
      -      "du_min": {
      -        "anyOf": [
      -          {
      -            "items": {
      -              "type": "number"
      -            },
      -            "type": "array"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null
      -      },
      -      "kind": {
      -        "const": "linear",
      -        "default": "linear",
      -        "type": "string"
      -      },
      -      "time_mode": {
      -        "default": "discrete",
      -        "enum": [
      -          "discrete",
      -          "continuous"
      -        ],
      -        "type": "string"
      -      },
      -      "u_max": {
      -        "anyOf": [
      -          {
      -            "items": {
      -              "type": "number"
      -            },
      -            "type": "array"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null
      -      },
      -      "u_min": {
      -        "anyOf": [
      -          {
      -            "items": {
      -              "type": "number"
      -            },
      -            "type": "array"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null
      -      },
      -      "x_max": {
      -        "anyOf": [
      -          {
      -            "items": {
      -              "type": "number"
      -            },
      -            "type": "array"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null
      -      },
      -      "x_min": {
      -        "anyOf": [
      -          {
      -            "items": {
      -              "type": "number"
      -            },
      -            "type": "array"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null
      -      }
      -    },
      -    "required": [
      -      "A",
      -      "B",
      -      "dt",
      -      "N",
      -      "kind"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "description": "Registered dynamics template plus a validated parameter dictionary.",
      -    "properties": {
      -      "N": {
      -        "maximum": 100,
      -        "minimum": 1,
      -        "type": "integer"
      -      },
      -      "du_max": {
      -        "anyOf": [
      -          {
      -            "items": {
      -              "type": "number"
      -            },
      -            "type": "array"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null
      -      },
      -      "du_min": {
      -        "anyOf": [
      -          {
      -            "items": {
      -              "type": "number"
      -            },
      -            "type": "array"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null
      -      },
      -      "kind": {
      -        "const": "nonlinear",
      -        "default": "nonlinear",
      -        "type": "string"
      -      },
      -      "name": {
      -        "enum": [
      -          "double_integrator",
      -          "thermal_rc_zone",
      -          "soil_moisture_cascade",
      -          "unicycle_kinematics"
      -        ],
      -        "type": "string"
      -      },
      -      "parameters": {
      -        "additionalProperties": {
      -          "type": "number"
      -        },
      -        "type": "object"
      -      },
      -      "u_max": {
      -        "anyOf": [
      -          {
      -            "items": {
      -              "type": "number"
      -            },
      -            "type": "array"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null
      -      },
      -      "u_min": {
      -        "anyOf": [
      -          {
      -            "items": {
      -              "type": "number"
      -            },
      -            "type": "array"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null
      -      },
      -      "x_max": {
      -        "anyOf": [
      -          {
      -            "items": {
      -              "type": "number"
      -            },
      -            "type": "array"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null
      -      },
      -      "x_min": {
      -        "anyOf": [
      -          {
      -            "items": {
      -              "type": "number"
      -            },
      -            "type": "array"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null
      -      }
      -    },
      -    "required": [
      -      "name",
      -      "parameters",
      -      "N",
      -      "kind"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "description": "Discrete or continuous linear plant.\n\nContinuous ``(A, B, Bd)`` are converted with a matrix exponential / zero-order\nhold at ``dt``. Discrete matrices are used as given. ``Bd`` defaults to ``B``\n(input disturbance) when omitted.",
      +    "properties": {
      +      "A": {
      +        "description": "State matrix, shape nx by nx, with nx <= 24. Discrete map or continuous xdot, matching time_mode.",
      +        "items": {
      +          "items": {
      +            "type": "number"
      +          },
      +          "type": "array"
      +        },
      +        "type": "array"
      +      },
      +      "B": {
      +        "description": "Input matrix, shape nx by nu, with nu <= 12.",
      +        "items": {
      +          "items": {
      +            "type": "number"
      +          },
      +          "type": "array"
      +        },
      +        "type": "array"
      +      },
      +      "Bd": {
      +        "anyOf": [
      +          {
      +            "items": {
      +              "items": {
      +                "type": "number"
      +              },
      +              "type": "array"
      +            },
      +            "type": "array"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Disturbance matrix, shape nx by nd, with nd <= 12. Omit to reuse B as an input disturbance."
      +      },
      +      "C": {
      +        "anyOf": [
      +          {
      +            "items": {
      +              "items": {
      +                "type": "number"
      +              },
      +              "type": "array"
      +            },
      +            "type": "array"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Output matrix, shape ny by nx. Omit for identity, which uses the full state."
      +      },
      +      "D": {
      +        "anyOf": [
      +          {
      +            "items": {
      +              "items": {
      +                "type": "number"
      +              },
      +              "type": "array"
      +            },
      +            "type": "array"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Feedthrough matrix, shape ny by nu. Omit when there is no direct term."
      +      },
      +      "N": {
      +        "description": "Prediction horizon in steps. Must be >= 1. Values above 100 are rejected.",
      +        "minimum": 1,
      +        "type": "integer"
      +      },
      +      "dt": {
      +        "description": "Sample time. Must be > 0. Continuous plants are zero-order-hold discretized at this step. Use seconds unless A is written in another time unit.",
      +        "exclusiveMinimum": 0,
      +        "type": "number"
      +      },
      +      "du_max": {
      +        "anyOf": [
      +          {
      +            "items": {
      +              "type": "number"
      +            },
      +            "type": "array"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Upper slew bounds on delta-u, length nu. Omit for 1e6 on each input. Slew bounds are hard."
      +      },
      +      "du_min": {
      +        "anyOf": [
      +          {
      +            "items": {
      +              "type": "number"
      +            },
      +            "type": "array"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Lower slew bounds on delta-u, length nu. Omit for -1e6 on each input. Slew bounds are hard."
      +      },
      +      "kind": {
      +        "const": "linear",
      +        "default": "linear",
      +        "description": "Plant kind. Must be \"linear\" for matrices A and B.",
      +        "type": "string"
      +      },
      +      "time_mode": {
      +        "default": "discrete",
      +        "description": "discrete uses A and B as given. continuous is zero-order-hold discretized at dt. Default discrete.",
      +        "enum": [
      +          "discrete",
      +          "continuous"
      +        ],
      +        "type": "string"
      +      },
      +      "u_max": {
      +        "anyOf": [
      +          {
      +            "items": {
      +              "type": "number"
      +            },
      +            "type": "array"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Upper input bounds, length nu, in the plant's input units. Omit for 1e6 on each input. Input bounds are hard."
      +      },
      +      "u_min": {
      +        "anyOf": [
      +          {
      +            "items": {
      +              "type": "number"
      +            },
      +            "type": "array"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Lower input bounds, length nu, in the plant's input units. Omit for -1e6 on each input. Input bounds are hard."
      +      },
      +      "x_max": {
      +        "anyOf": [
      +          {
      +            "items": {
      +              "type": "number"
      +            },
      +            "type": "array"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Upper state bounds, length nx, in the plant's state units. Omit for 1e6 on each state. State bounds are soft."
      +      },
      +      "x_min": {
      +        "anyOf": [
      +          {
      +            "items": {
      +              "type": "number"
      +            },
      +            "type": "array"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Lower state bounds, length nx, in the plant's state units. Omit for -1e6 on each state. State bounds are soft."
      +      }
      +    },
      +    "required": [
      +      "A",
      +      "B",
      +      "dt",
      +      "N",
      +      "kind"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "description": "Registered dynamics template plus a validated parameter dictionary.",
      +    "properties": {
      +      "N": {
      +        "description": "Prediction horizon in steps. Must be >= 1 and <= 100.",
      +        "maximum": 100,
      +        "minimum": 1,
      +        "type": "integer"
      +      },
      +      "du_max": {
      +        "anyOf": [
      +          {
      +            "items": {
      +              "type": "number"
      +            },
      +            "type": "array"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Upper slew bounds on delta-u, length nu. Omit for 1e6 on each input. Slew bounds are hard."
      +      },
      +      "du_min": {
      +        "anyOf": [
      +          {
      +            "items": {
      +              "type": "number"
      +            },
      +            "type": "array"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Lower slew bounds on delta-u, length nu. Omit for -1e6 on each input. Slew bounds are hard."
      +      },
      +      "kind": {
      +        "const": "nonlinear",
      +        "default": "nonlinear",
      +        "description": "Plant kind. Must be \"nonlinear\" for a registered template.",
      +        "type": "string"
      +      },
      +      "name": {
      +        "description": "Registered template: double_integrator, thermal_rc_zone, soil_moisture_cascade, or unicycle_kinematics.",
      +        "enum": [
      +          "double_integrator",
      +          "thermal_rc_zone",
      +          "soil_moisture_cascade",
      +          "unicycle_kinematics"
      +        ],
      +        "type": "string"
      +      },
      +      "parameters": {
      +        "additionalProperties": {
      +          "type": "number"
      +        },
      +        "description": "Template knobs, one number per required key. double_integrator and unicycle_kinematics: dt > 0 (seconds). thermal_rc_zone: dt > 0, capacity > 0, time_constant > 0, and ambient. soil_moisture_cascade: dt > 0, capacity > 0, tau_1 > 0, tau_2 > 0, tau_3 > 0, k_12 >= 0, k_23 >= 0. Unknown keys are rejected.",
      +        "type": "object"
      +      },
      +      "u_max": {
      +        "anyOf": [
      +          {
      +            "items": {
      +              "type": "number"
      +            },
      +            "type": "array"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Upper input bounds, length nu, in the plant's input units. Omit for 1e6 on each input. Input bounds are hard."
      +      },
      +      "u_min": {
      +        "anyOf": [
      +          {
      +            "items": {
      +              "type": "number"
      +            },
      +            "type": "array"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Lower input bounds, length nu, in the plant's input units. Omit for -1e6 on each input. Input bounds are hard."
      +      },
      +      "x_max": {
      +        "anyOf": [
      +          {
      +            "items": {
      +              "type": "number"
      +            },
      +            "type": "array"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Upper state bounds, length nx, in the plant's state units. Omit for 1e6 on each state. State bounds are soft."
      +      },
      +      "x_min": {
      +        "anyOf": [
      +          {
      +            "items": {
      +              "type": "number"
      +            },
      +            "type": "array"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Lower state bounds, length nx, in the plant's state units. Omit for -1e6 on each state. State bounds are soft."
      +      }
      +    },
      +    "required": [
      +      "name",
      +      "parameters",
      +      "N",
      +      "kind"
      +    ],
      +    "type": "object"
      +  }
      +]
  4. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Far beyond the annotations: it discloses the billing point ('Payment settles when the job is accepted onto the queue, not when the study finishes'), the $1.50 price, the X-API-Key vs x402 paths, HTTP 402 and 429 semantics ('not charged'), sampler seed 7, the timeout budget, and restart handling ('leftover running rows failed with interrupted_by_restart instead of deleting a paid job'). One sentence is misleading against the schema, however: 'There is no scenario bank' is absolute, yet the request schema exposes a curriculum with stages, per-stage scenario banks, and a regression cap.

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 action and the required follow-up are front-loaded in the first two sentences, and the pricing paragraph is dense with non-redundant operational facts. Some material repeats itself ('Optuna tunes Q, R, Rd, and Qf' appears twice), and the payment block could be compressed, but every paragraph earns most of its space.

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?

For an async, paid, non-idempotent job launcher this is close to complete: auth, price, charge timing, queue-full behavior, polling loop, restart outcomes, and return contents are all covered, and the output schema removes the need to describe result shape. The gap is accuracy around the optional curriculum/staged-study path, which the description implicitly denies exists, plus no mention of the prerequisite free validation or prior solve that the schema references.

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?

With a single top-level 'request' parameter and 100% schema description coverage, the schema already carries the load, so the baseline of 3 applies. The description does add useful framing about acceptable plants (linear A/B, the named template family, allowlisted expression plants) and clarifies the returned Q/R/Rd/Qf are physical while normalized_Q is the unitless search box, but it does not explain individual fields such as curriculum, costs, or constraints.

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 opening two sentences name a specific verb and resource ('Queue an Optuna search for Q, R, Rd, and Qf') and immediately name the follow-up tool ('poll get_autotune_job'). The body further scopes the tool to the case where weights are unknown after a solve, which separates it cleanly from solve_mpc, validate_problem, and the template-specific autotune siblings.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

'Call this when the weights are unknown and you can afford a closed-loop study with plant mismatch' gives an explicit trigger, and 'It is an alternative to manual PID or hand-tuned MPC' names the alternatives. It also sets expectations about what the study will not do ('no never-worse check... not a comparison with weights you already have') and specifies the mandatory follow-up ('Poll until status is complete or failed').

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.