Skip to main content

Module validate

Module validate 

Source
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.