Expand description
Custom validation layer for MCP tool parameters.
This module provides business logic validation for tool parameters,
complementing the type coercion layer in coerce.rs.
Validations include:
- UUID format validation
- Enum value validation (interaction_type, scope, etc.)
- Numeric limit validation
- Business rule validation
Constants§
- VALID_
INTERACTION_ TYPES - Valid interaction type values
Functions§
- validate_
interaction_ type - Validate an interaction type is one of the valid values.
- validate_
limits - Validate a numeric limit is within acceptable bounds.
- validate_
recency_ bias - Validate a recency_bias parameter is within acceptable bounds.
- validate_
scope - Validate a scope value for semantic search.
- validate_
session_ action - Validate a session action.
- validate_
session_ id - Validate a session ID is a valid UUID and return the parsed value.
- validate_
session_ role - Validate a session role for workspace membership.
- validate_
workspace_ action - Validate a workspace action.
- validate_
workspace_ id - Validate a workspace ID is a valid UUID and return the parsed value.