Parameter constructor

const Parameter({
  1. String? alias,
  2. String? title,
  3. String? description,
  4. Object? example,
  5. num? minimum,
  6. num? maximum,
  7. String? pattern,
  8. int? maxLength,
  9. bool sensitive = false,
  10. List<Object?>? enumValues,
})

Creates a Parameter annotation.

alias - Custom external name for this parameter. title - Human-readable title displayed in MCP clients. description - Detailed explanation of the parameter's purpose. example - Example value to guide users. minimum - Minimum allowed value for numeric types. maximum - Maximum allowed value for numeric types. pattern - Regular expression pattern for string validation. maxLength - Maximum length for string parameters. sensitive - Whether this parameter contains sensitive data. enumValues - List of allowed values for enum-like parameters.

Implementation

const Parameter({
  this.alias,
  this.title,
  this.description,
  this.example,
  this.minimum,
  this.maximum,
  this.pattern,
  this.maxLength,
  this.sensitive = false,
  this.enumValues,
});