pub fn validate_tool_spec(spec: &ToolSpec) -> Result<(), StrandsError>Expand description
Validates a single tool specification.
This function checks that the tool spec meets requirements:
- Has a valid name (non-empty, proper length, valid characters)
- Has a description
- Has a valid input schema if provided
§Arguments
spec- The tool specification to validate
§Returns
Ok(()) if valid, or an error describing the validation failure.