Parameter constructor
const
Parameter({})
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,
});