Skip to main content
Glama

Validate a problem

validate_problem
Read-onlyIdempotent

Check dimensions, bounds, and linear controllability before a solve.

This is POST /v1/validate and stays free when payment enforcement is on. It does not use X-API-Key and it does not return HTTP 402. Call it before solve_mpc when you want the plant rejected without spending a credit.

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": "validate_problem"
  }
}

Input Schema

NameRequiredDescriptionDefault
requestYesFree plant check. No X-API-Key and no x402 charge. Call this before the paid solve_mpc, and before autotune.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed9 schema fields changed
    • addedInput schema / properties / request / properties / linear_input_cost
      Added value: +{
      +  "anyOf": [
      +    {
      +      "items": {
      +        "type": "number"
      +      },
      +      "type": "array"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Linear input stage cost, length nu. Omit to skip that check."
      +}
    • addedInput schema / properties / request / properties / linear_state_cost
      Added value: +{
      +  "anyOf": [
      +    {
      +      "items": {
      +        "type": "number"
      +      },
      +      "type": "array"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Linear state stage cost, length nx. Omit to skip that check."
      +}
    • addedInput schema / properties / request / properties / output_weight
      Added value: +{
      +  "anyOf": [
      +    {
      +      "items": {
      +        "items": {
      +          "type": "number"
      +        },
      +        "type": "array"
      +      },
      +      "type": "array"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Output residual weight, shape ny by ny. Omit to skip that check."
      +}
    • addedInput schema / properties / request / properties / qf_source
      Added value: +{
      +  "default": "caller",
      +  "description": "caller checks Qf only. discrete_riccati also requires a linear plant.",
      +  "enum": [
      +    "caller",
      +    "discrete_riccati"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / request / properties / scenario_forecasts
      Added value: +{
      +  "anyOf": [
      +    {
      +      "items": {
      +        "items": {
      +          "items": {
      +            "type": "number"
      +          },
      +          "type": "array"
      +        },
      +        "type": "array"
      +      },
      +      "type": "array"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Scenario forecasts, each N by nd. Omit to skip that check."
      +}
    • addedInput schema / properties / request / properties / solver
      Added value: +{
      +  "default": "auto",
      +  "description": "Leave this at auto. The server selects the numerical method.",
      +  "type": "string"
      +}
    • 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"
      +  }
      +]
    • addedInput schema / properties / request / properties / tube_bound
      Added value: +{
      +  "anyOf": [
      +    {
      +      "items": {
      +        "type": "number"
      +      },
      +      "type": "array"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Tube disturbance magnitude, length nx. Omit to skip that check."
      +}
    • addedInput schema / properties / request / properties / z_ref
      Added value: +{
      +  "anyOf": [
      +    {
      +      "items": {
      +        "type": "number"
      +      },
      +      "type": "array"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Output reference, length ny. Omit to skip that check."
      +}
  2. Changed10 schema fields changed
    • addedInput schema / properties / request / description
      Added value: +"Free plant check. No X-API-Key and no x402 charge. Call this before the paid solve_mpc, and before autotune."
    • addedInput schema / properties / request / properties / Q / description
      Added value: +"Stage state weight, shape nx by nx. Omit to skip the weight check."
    • addedInput schema / properties / request / properties / Qf / description
      Added value: +"Terminal state weight, shape nx by nx. Omit to skip the weight check."
    • addedInput schema / properties / request / properties / R / description
      Added value: +"Input weight, shape nu by nu. Omit to skip the weight check."
    • addedInput schema / properties / request / properties / Rd / description
      Added value: +"Slew weight, shape nu by nu. Omit to skip the weight check."
    • addedInput schema / properties / request / properties / d_hat / description
      Added value: +"Disturbance estimate, length nd. Omit to skip that length check."
    • addedInput schema / properties / request / properties / system / description
      Added value: +"Plant to check. This call is free: no X-API-Key and no x402 charge. Run it before the paid solve, and before autotune."
    • 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"
      +  }
      +]
    • addedInput schema / properties / request / properties / x0 / description
      Added value: +"Initial state, length nx. Omit to skip that length check."
    • addedInput schema / properties / request / properties / x_ref / description
      Added value: +"State reference, length nx. Omit to skip that length check."
  3. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations cover the safety profile (readOnly, idempotent, non-destructive), and the description adds behavior the annotations cannot express: it is a free endpoint, needs no X-API-Key, and never returns HTTP 402 even when payment enforcement is on. Auth and billing behavior are the highest-value disclosures for a pre-solve check, and they are stated plainly.

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?

Purpose is front-loaded in the first clause and the cost/auth caveats follow in short sentences. There is mild redundancy between "stays free when payment enforcement is on," "does not use X-API-Key," and "does not return HTTP 402," which restate the same billing fact three ways, but nothing is padded.

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

Completeness5/5

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

With an output schema present and richly annotated parameters, the description only needs to establish what is checked, when to call it, and its cost/auth profile — all of which it does. Nothing an agent needs to invoke this correctly is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100% and the single nested "request" object is exhaustively documented (shapes, defaults, omit-to-skip semantics), so the schema carries parameter meaning. The description adds no parameter-level detail beyond "dimensions, bounds, and linear controllability," which justifies the baseline 3.

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?

"Check dimensions, bounds, and linear controllability" names a specific verb and the exact resource being validated, and the description immediately distinguishes this from solve_mpc (validation-only, no credit spent). An agent can separate it from the solve and autotune siblings without opening the schema.

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?

It gives an explicit trigger: "Call it before solve_mpc when you want the plant rejected without spending a credit." That names the alternative and the condition that selects this tool over it, which is exactly the routing guidance needed.

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.