pub struct McpInput { /* private fields */ }Expand description
Shape-owned metadata for model-controlled MCP input.
This is metadata only. Protocol handling, JSON decoding, validation, and application authorization stay in MCP integration crates.
Implementations§
Source§impl McpInput
impl McpInput
Sourcepub const fn unsupported() -> Self
pub const fn unsupported() -> Self
No model-controlled MCP input is supported.
Sourcepub const fn scalar(kind: McpPrimitiveKind) -> Self
pub const fn scalar(kind: McpPrimitiveKind) -> Self
Accept a scalar of the given primitive kind.
Sourcepub const fn string_list() -> Self
pub const fn string_list() -> Self
Accept an ordered array of strings.
Sourcepub const fn boolean_list() -> Self
pub const fn boolean_list() -> Self
Accept an ordered array of booleans.
Sourcepub const fn integer_list() -> Self
pub const fn integer_list() -> Self
Accept an ordered array of integers.
Sourcepub const fn number_list() -> Self
pub const fn number_list() -> Self
Accept an ordered array of numbers.
Sourcepub const fn decimal_list() -> Self
pub const fn decimal_list() -> Self
Accept an ordered array of decimals encoded as JSON numbers or strings.
Sourcepub const fn date_time_list() -> Self
pub const fn date_time_list() -> Self
Accept an ordered array of RFC 3339 date-time strings.
Sourcepub const fn list(items: McpPrimitiveKind) -> Self
pub const fn list(items: McpPrimitiveKind) -> Self
Accept an ordered array of primitive values.
Sourcepub const fn string_set() -> Self
pub const fn string_set() -> Self
Accept a unique array of strings.
Sourcepub const fn boolean_set() -> Self
pub const fn boolean_set() -> Self
Accept a unique array of booleans.
Sourcepub const fn integer_set() -> Self
pub const fn integer_set() -> Self
Accept a unique array of integers.
Sourcepub const fn number_set() -> Self
pub const fn number_set() -> Self
Accept a unique array of numbers.
Sourcepub const fn decimal_set() -> Self
pub const fn decimal_set() -> Self
Accept a unique array of decimals encoded as JSON numbers or strings.
Sourcepub const fn date_time_set() -> Self
pub const fn date_time_set() -> Self
Accept a unique array of RFC 3339 date-time strings.
Sourcepub const fn set(items: McpPrimitiveKind) -> Self
pub const fn set(items: McpPrimitiveKind) -> Self
Accept a unique array of primitive values.
Sourcepub const fn decimal_range() -> Self
pub const fn decimal_range() -> Self
Accept a decimal { "min": ..., "max": ... } range object.
Sourcepub const fn integer_range() -> Self
pub const fn integer_range() -> Self
Accept an integer { "min": ..., "max": ... } range object.
Sourcepub const fn number_range() -> Self
pub const fn number_range() -> Self
Accept a number { "min": ..., "max": ... } range object.
Sourcepub const fn date_range() -> Self
pub const fn date_range() -> Self
Accept a date { "min": ..., "max": ... } range object.
Sourcepub const fn date_time_range() -> Self
pub const fn date_time_range() -> Self
Accept a date-time { "min": ..., "max": ... } range object.
Sourcepub const fn range(bound: McpRangeBoundKind) -> Self
pub const fn range(bound: McpRangeBoundKind) -> Self
Accept a { "min": ..., "max": ... } range object of the given kind.
Sourcepub const fn input_shape(self) -> McpInputShape
pub const fn input_shape(self) -> McpInputShape
Return the structured input shape exposed to MCP integrations.